Skip to content

Commit

Permalink
fix closing connection
Browse files Browse the repository at this point in the history
  • Loading branch information
endel committed May 19, 2018
1 parent 84b662d commit 7311101
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/colyseus.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "colyseus.js",
"version": "0.9.4",
"version": "0.9.5",
"description": "Multiplayer Game Client for the Browser",
"keywords": [
"multiplayer",
Expand Down
4 changes: 0 additions & 4 deletions src/Connection.ts
Expand Up @@ -23,10 +23,6 @@ export class Connection extends WebSocketClient {
}
}

public onCloseCallback(event) {
super.onCloseCallback();
}

public send(data: any): void {
if (this.ws.readyState === WebSocket.OPEN) {
return super.send( msgpack.encode(data) );
Expand Down

0 comments on commit 7311101

Please sign in to comment.