socket io on connection node code example
Example 1: socket io node js
npm install socket.io
Example 2: Connect to socket.io node.js command line
npx wscat -c ws://localhost:3000/socket.io/\?transport=websocket
npm install socket.io
npx wscat -c ws://localhost:3000/socket.io/\?transport=websocket