WebSocket.url
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
The WebSocket.url
read-only property returns the absolute URL of the WebSocket
as resolved by the constructor.
**WebSocket.url
**是一个只读属性,返回值为当构造函数创建WebSocket
实例对象时 URL 的绝对路径。
语法
var url = aWebSocket.url;
返回值
A DOMString
.
规范
Specification |
---|
WebSockets # ref-for-dom-websocket-url① |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.