add version reporting

This commit is contained in:
ading2210 2024-02-03 22:03:47 -05:00
parent 3c517bbaf5
commit a4c075b497
10 changed files with 71 additions and 11 deletions

View file

@ -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");
}