mirror of https://github.com/calzoneman/sync.git
Add socket.leave() support for proxy backend
This commit is contained in:
parent
0ee7f05213
commit
295c2a41a8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue