| 11288 | }); |
| 11289 | } |
| 11290 | function parseUrl(url) { |
| 11291 | var finalUrl = url; |
| 11292 | if (finalUrl.startsWith("/")) { |
| 11293 | var basePart = window.location.hostname + (window.location.port ? ":" + window.location.port : ""); |
| 11294 | if (window.location.protocol === "https:") { |
| 11295 | finalUrl = "wss://" + basePart + finalUrl; |
| 11296 | } else if (window.location.protocol === "http:") { |
| 11297 | finalUrl = "ws://" + basePart + finalUrl; |
| 11298 | } |
| 11299 | } |
| 11300 | return finalUrl; |
| 11301 | } |
| 11302 | var PROXY_BLACKLIST = ["then", "catch", "length", "toJSON"]; |
| 11303 | var SocketFeature = class _SocketFeature extends Feature { |
| 11304 | static keyword = "socket"; |