Do not write if the websocket is not open.