Skip to content

Commit

Permalink
use provided http server instance
Browse files Browse the repository at this point in the history
  • Loading branch information
aclave1 committed Feb 5, 2016
1 parent 99806e9 commit a427fa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(this.server,primusDefaults)
res()
this.app.sockets = new Primus(httpServer,primusDefaults);
res();
})
})
}
Expand Down

0 comments on commit a427fa9

Please sign in to comment.