Avoid sending messages when websocket is not fully opened