mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-12 14:00:01 -04:00
don't set a default websocket url
This commit is contained in:
parent
58a8f2259e
commit
b071019761
8 changed files with 45 additions and 20 deletions
|
@ -3,6 +3,7 @@
|
|||
class CurlWebSocket extends EventTarget {
|
||||
constructor(url, protocols=[]) {
|
||||
super();
|
||||
check_loaded();
|
||||
if (!url.startsWith("wss://") && !url.startsWith("ws://")) {
|
||||
throw new SyntaxError("invalid url");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue