Fix sending raw messages not checking websocket state