Last active
June 13, 2022 03:26
-
-
Save rsatrio/77bec3a4ca565ec54bbc3133a3debf74 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
let socketAddr = process.env.REACT_APP_SIGNALLING_SERVER; | |
ws1 = new WebSocket(socketAddr); | |
ws1.onopen = event => { | |
signal1.userId = ''; | |
signal1.type = 'Login'; | |
signal1.data = ''; | |
console.log(JSON.stringify(signal1)); | |
ws1.send(JSON.stringify(signal1)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment