image

Node real-time libraries

Notable libraries to build real-time features like notifications, messaging, streaming or tracking in Node.js

Node is one of the best programming languages out there to build real-time applications due to its event-driven and asynchronous nature, messaging and notification delivery are two of the most common use cases for real-time.

WebSocket provides the solution we need. WebSocket is a communication protocol that allows both the client and server to initiate communication.


Socket.IO

image

socket.io

Socket.IO enables real-time bidirectional event-based communication, consists of a Node.js server and a Javascript client library for the browser/Node.js.

ws

image

github.com

ws is a simple to use, blazing fast, and thoroughly tested WebSocket client and server implementation in Node.js, does not work in the browser.

uWebSockets.js

image

github.com

µWebSockets.js is a C++ implementation of the WebSocket/HTTP protocols for Node.js, easy to use from JavaScript. Think of it as a much faster alternative to both Socket.IO and Fastify/Express.js; it comes with both router and pub/sub support.

Feathers

image

feathersjs.com

Feathers is a lightweight web-framework for creating real-time applications and REST APIs