Purl
Bun

property

WebSocket.url

readonly url: string

Returns the URL that was used to establish the WebSocket connection.

MDN Reference