give braid a dedicated docker repo

This commit is contained in:
Josh Burman
2019-03-18 11:38:33 -04:00
parent f8676246da
commit b2352af6a1
2 changed files with 14 additions and 3 deletions

View File

@ -38,6 +38,17 @@ class ClientBase {
channel.broadcastMessage(this, message);
logger.accessLog.info(`broadcast complete on channel ${channel.id}: `, {message: message});
});
this.ws.on('close', (reasonCode: string, description: string) => {
logger.accessLog.info(`closing connection for client ${this.id}`);
if (this.channel) {
this.channel.removeClient(this.id);
}
// server.clientManager.removeClient(this.id);
logger.accessLog.info(`closed connection for client ${this.id}`);
});
}
replaceWebSocket(ws: WebSocket) {