Update frontend websocket behaviour