Emit socket-created event

This commit is contained in:
Jiiks 2018-01-15 06:30:15 +02:00
parent c851d2e92c
commit 6b96b191aa
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@
*/
const { Module } = require('./modulebase');
const { Events } = require('./events');
class Global extends Module {
@ -31,6 +32,7 @@ class Global extends Module {
const state = this.state;
state.wsHook = wSocket;
this.setState(state);
Events.emit('socket-created');
}
getObject(name) {