Created
January 12, 2019 13:14
-
-
Save Njuelle/9d4b4ccfc048a7c638cfd15d46aded18 to your computer and use it in GitHub Desktop.
Minimum NodeJS Socket.io client
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
| var socket = require('socket.io-client')('http://localhost:1337'); | |
| socket.on('connect', () => { | |
| socket.send('hi'); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment