url

external val url: String(source)

The WebSocket.url read-only property returns the absolute URL of the WebSocket as resolved by the constructor.

MDN Reference