Subscribe message, not a URL path — you always connect to wss://ws.etoro.com/ws
and then subscribe.
Every message must be sent after the socket opens. A
send() call made
straight after new WebSocket(...) throws InvalidStateError, because the
connection is still in the CONNECTING state — hence the onopen handler below.