Skip to content

Instantly share code, notes, and snippets.

@basith374
Created April 23, 2020 16:47
Show Gist options
  • Save basith374/f8c3030a5d43dcd84ed0a82db4f74a70 to your computer and use it in GitHub Desktop.
Save basith374/f8c3030a5d43dcd84ed0a82db4f74a70 to your computer and use it in GitHub Desktop.
wserver test
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();
});
@basith374
Copy link
Author

basith374 commented Apr 23, 2020

How to run

npm install socket.io-client
node client.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment