Back to Content

WebSocket: url property

files/en-us/web/api/websocket/url/index.md

latest281 B
Original Source

{{APIRef("WebSockets API")}}{{AvailableInWorkers}}

The WebSocket.url read-only property returns the absolute URL of the {{domxref("WebSocket")}} as resolved by the constructor.

Value

A string.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}