Created
November 16, 2018 14:38
-
-
Save Srushtika/78bb23958358ce3c2e728e88a19989a9 to your computer and use it in GitHub Desktop.
WebSockets server tutorial
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
ws.addEventListener('open', () => { | |
// Send a message to the WebSocket server | |
ws.send('Hello!'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment