Created
April 23, 2020 16:47
-
-
Save basith374/f8c3030a5d43dcd84ed0a82db4f74a70 to your computer and use it in GitHub Desktop.
wserver test
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
| const io = require('socket.io-client'); | |
| let url = 'https://config.intellicar.in/socket.io'; | |
| const sock = io.connect(url); | |
| sock.on('connect', () => { | |
| console.log('connect') | |
| sock.disconnect(); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to run
npm install socket.io-clientnode client.js