Skip to content

Commit

Permalink
disable auto-reconnection to room's. only Client can reconnect.
Browse files Browse the repository at this point in the history
  • Loading branch information
endel committed Mar 15, 2018
1 parent bd6a414 commit f5d8a91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "colyseus.js",
"version": "0.8.3",
"version": "0.8.4",
"description": "Multiplayer Game Client for the Browser",
"keywords": [
"multiplayer",
Expand Down Expand Up @@ -29,7 +29,7 @@
},
"dependencies": {
"@gamestdio/clock": "^1.1.0",
"@gamestdio/websocket": "^0.2.2",
"@gamestdio/websocket": "^0.2.3",
"delta-listener": "^2.1.2",
"fossil-delta": "^1.0.0",
"notepack.io": "^2.1.2",
Expand Down
1 change: 1 addition & 0 deletions src/Room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export class Room<T=any> extends DeltaContainer<T & any> {

connect (connection: Connection) {
this.connection = connection;
this.connection.reconnectEnabled = false;
this.connection.onmessage = this.onMessageCallback.bind(this);
this.connection.onclose = (e) => this.onLeave.dispatch(e);
}
Expand Down

0 comments on commit f5d8a91

Please sign in to comment.