don't try to send messages when websocket is not present