mlcl_websockets
Version:
Websocket support for molecuel
20 lines (16 loc) • 488 B
text/typescript
;
import socketio = require('socket.io');
class MlclWebsockets {
public static loaderversion = 2;
public static singleton = false;
public static molecuel;
public socketsrv: SocketIO.Server;
constructor(molecuel: any, config: any) {
MlclWebsockets.molecuel = molecuel;
this.socketsrv = socketio();
MlclWebsockets.molecuel.on('mlcl::core::init:server', (molecuel, server) => {
this.socketsrv.attach(server);
});
}
}
export = MlclWebsockets;