Skip to content

Commit

Permalink
room.leave() now sends a consent disconnection message. bump 0.9.10
Browse files Browse the repository at this point in the history
  • Loading branch information
endel committed Jul 16, 2018
1 parent be77ff8 commit 34a4861
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "colyseus.js",
"version": "0.9.9",
"version": "0.9.10",
"description": "Multiplayer Game Client for the Browser",
"keywords": [
"multiplayer",
Expand Down
2 changes: 1 addition & 1 deletion src/Room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class Room<T= any> extends StateContainer<T & any> {

public leave(): void {
if (this.connection) {
this.connection.close();
this.connection.send([Protocol.LEAVE_ROOM]);

} else {
this.onLeave.dispatch();
Expand Down

0 comments on commit 34a4861

Please sign in to comment.