refactor: open shortcut

This commit is contained in:
cha0s 2020-05-17 06:26:55 -05:00
parent 23919573d6
commit 3973b74ff1

View File

@ -10,9 +10,12 @@ const decorateServer = compose(
export class SocketServer extends decorateServer(class {}) {
constructor() {
constructor(httpServer) {
super();
this.onConnect = this.onConnect.bind(this);
if (httpServer) {
this.open(httpServer);
}
}
close(fn) {