websocket can be null before first connection