Created
August 15, 2022 02:32
-
-
Save lukejoshuapark/8110ce3d8661dfcb9306e8bbc26ea044 to your computer and use it in GitHub Desktop.
This file contains 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
const res = await fetch("http://localhost:5007/auth", { method: "POST" }); | |
const { connectionToken } = await res.json(); | |
const url = `wss://ws.quicksocket.io?t=${connectionToken}`; | |
const webSocket = new WebSocket(url); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment