@d3x0r/sack-gui
Version:
SACK abstraction library exposed to JS to provide low level system services.
16 lines (10 loc) • 322 B
JavaScript
import {Protocol as Protocol_ } from "sack.vfs/protocol"
class Protocol extends Protocol_ {
constructor() {
const opts = { resourcePath:"ui", port:Number(process.env.PORT) || 4321 } ;
super( opts );
console.log( "Probably serving OK?", opts.port );
//this.on( "
}
}
export const protocol = new Protocol();