Skip to content

18 Socket.IO

Jagdeep Singh edited this page Jun 7, 2019 · 2 revisions

Socket.IO enables real-time bidirectional event-based communication. It works on every platform, browser or device, focusing equally on reliability and speed.

Built on top of the WebSockets API (Client side) and Node.js. One of the most depended upon libraries on npm.

Namespaces

Namespaces are endpoints/paths for sockets. These can be used to minimize the number of TCP connections by separating connections between communication channels.

Rooms

Within each namespace, you can also define arbitrary channels that sockets can join and leave.

Clone this wiki locally