propertyWebSocket.urlreadonly url: stringReturns the URL that was used to establish the WebSocket connection.MDN Reference