Category "socket.io"

socket.io determine if a user is online or offline

We can trace if a connection is established or disconnected by this code console.log('a user connected'); socket.on('disconnect', function () { con

Send cookies with socket.io-client

I am trying to connect to a websocket. I would like to add cookies from the actual website login, so the server (which is NOT mine), knows who I am (events are

socket.io connection not working but new Websocket working

I' have a socket server i just try to connect that server. when i try new Websocket my connection is works; const socket = new Websocket('ws://127.0.0.1:8000'

Getting socket.io to reconnect when re-entering the page with the back button

everyone - I have a feature I'm trying to add to a Node.js application that uses socket.io (4.x, if it matters). I am creating a game where I would like the use

How to send a message to a particular client with socket.io

I'm starting with socket.io + node.js, I know how to send a message locally and to broadcast socket.broadcast.emit() function:- all the connected clients receiv