Add socket.leave() support for proxy backend

This commit is contained in:
calzoneman 2016-04-03 11:49:58 -07:00
parent 0ee7f05213
commit 295c2a41a8
1 changed files with 8 additions and 0 deletions

View File

@ -38,6 +38,14 @@ export default class ProxiedSocket extends EventEmitter {
);
}
leave(room) {
this.frontendConnection.write(
this.frontendConnection.protocol.newSocketLeaveRoomsEvent(
this.id, [room]
)
);
}
disconnect() {
this.frontendConnection.write(
this.frontendConnection.protocol.newSocketKickEvent(this.id)