Add a handler for new websocket connections