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

Specification
WebSockets Standard # ref-for-dom-websocket-url①

Browser compatibility




Desktop
Mobile



Chrome
Edge
Firefox
Internet Explorer
Opera
Safari
WebView Android
Chrome Android
Firefox for Android
Opera Android
Safari on IOS
Samsung Internet



url
18
12
7
No
12.1
6
4.4
18
7
12.1
6
1.0




Found a problem with this page?

Edit on GitHub
Source on GitHub
Report a problem with this content on GitHub
Want to fix the problem yourself? See our Contribution guide.


Last modified: Apr 2, 2022, by MDN contributors


    
{'path': 'public/docs/dom/websocket/url.html', 'source': 'DevDocs.IO'}