websocket conditions