Last active
December 12, 2023 22:50
-
-
Save matiaslopezd/cd398b187c0237b89744cc017e41a1c2 to your computer and use it in GitHub Desktop.
Snippet WebSocket
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyCustomWebSocket extends WebSocket { | |
constructor(url) { | |
super(url); | |
} | |
} | |
const websocket = new MyCustomWebSocket('wss://websocket-test.videsk.workers.dev/'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment