Setting up client-side websocket management