Skip to content

Commit

Permalink
update sio connector parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
py8765 committed Nov 4, 2015
1 parent 5c464fc commit 3854216
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/connectors/sioconnector.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ Connector.prototype.start = function(cb) {
]
});
}
this.wsocket.set('heartbeat timeout', this.heartbeatTimeout);
this.wsocket.set('heartbeat interval', this.heartbeatInterval);
this.wsocket.set('heartbeat timeout', this.heartbeatTimeout * 1000);
this.wsocket.set('heartbeat interval', this.heartbeatInterval * 1000);
this.wsocket.sockets.on('connection', function (socket) {
var siosocket = new SioSocket(curId++, socket);
self.emit('connection', siosocket);
Expand Down
1 change: 1 addition & 0 deletions template/game-server/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node app.js host=127.0.0.1 port=3150 clientPort=3010 frontend=true serverType=connector >/dev/null 2>&1 &

0 comments on commit 3854216

Please sign in to comment.