Skip to content

Glossary: Real-Time Apps with WebSockets

socket.id

Also written: socket id

A random, unique id each Socket.IO connection gets. Every socket is also in a private room named after it, so `io.to(socket.id).emit(...)` messages that one client.

Where the book teaches it

Related terms

RoomSocket.IO