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

6
build
View File

@ -1,8 +1,8 @@
#!/usr/bin/env bash
SHA=$(git rev-parse --short=7 HEAD)
docker build -t yardstick/micro-services:braid-$SHA .
docker push yardstick/micro-services:braid-$SHA
docker build -t yardstick/braid-$SHA .
docker push yardstick/braid-$SHA
echo "Your new docker tag: yardstick/micro-services:braid-$SHA"
echo "Your new docker tag: yardstick/braid-$SHA"

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) {