WebSockets are often used for transmitting data from servers to web browsers and back. However, they can also be used to connect server-side programs, allowing for another way to integrate systems and transmit data between services. For this, we have created a new realtime framework called Hub.
Hub is a Node.js framework built using WebSockets, Sarus, and Node.js. It is available from NPM (@anephenix/hub), and you can find out more details about it on GitHub. You can install it via NPM:
npm install @anephenix/hub
Sarus is a JavaScript library for WebSockets. It takes care of issues that you might run into when working with WebSockets, like handling severed connections as an example. As we used it, we realised that we needed to add support for features on the WebSocket server, such as:
As a result, we ended up creating Hub.
In short, Hub is a realtime framework using WebSockets and Node.js, that provides the features like:
Hub is for people who want to craft a bespoke realtime solution for their needs.
If you want to explore those features in detail, checkout the README on the GitHub repository.