register method
Registers a new connection into the hub.
This is handled automatically by the App during the WebSocket upgrade process.
Implementation
void register(WebSocketConnection connection) {
_connections[connection.id] = connection;
connection.socket.done.then((_) => _connections.remove(connection.id));
}