mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-12 14:00:01 -04:00
add version reporting
This commit is contained in:
parent
3c517bbaf5
commit
a4c075b497
10 changed files with 71 additions and 11 deletions
|
@ -3,7 +3,7 @@
|
|||
class CurlWebSocket extends EventTarget {
|
||||
constructor(url, protocols=[]) {
|
||||
super();
|
||||
check_loaded();
|
||||
check_loaded(true);
|
||||
if (!url.startsWith("wss://") && !url.startsWith("ws://")) {
|
||||
throw new SyntaxError("invalid url");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue