Skip to content

Commit

Permalink
Merge pull request #5 from AnubisCode/patch-1
Browse files Browse the repository at this point in the history
allow to receive arbitrary messages from server
  • Loading branch information
endel authored Dec 16, 2016
2 parents 50eee81 + abba506 commit 1952012
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,11 @@ export class Client extends WebSocketClient {
this.rooms[ roomId ].onData.dispatch(message[2]);
this.onMessage.dispatch(message[2]);

} else {
this.onMessage.dispatch(message);
}



}

}

0 comments on commit 1952012

Please sign in to comment.