diff --git a/index.js b/index.js index 8d9989d..e9cb374 100644 --- a/index.js +++ b/index.js @@ -20,8 +20,8 @@ module.exports = class Realtime extends Trailpack { initialize () { return new Promise((res,rej)=>{ this.app.once('webserver:http:ready',(httpServer)=>{ - this.app.sockets = new Primus(httpServer,primusDefaults); - res(); + this.app.sockets = new Primus(httpServer,primusDefaults) + res() }) }) }