don't set a default websocket url

This commit is contained in:
ading2210 2024-01-29 15:40:17 -05:00
parent 58a8f2259e
commit b071019761
8 changed files with 45 additions and 20 deletions

View file

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