nest-react-websockets
Socket.io
nest-react-websockets | Socket.io | |
---|---|---|
1 | 855 | |
34 | 62,334 | |
- | 0.3% | |
10.0 | 7.0 | |
over 2 years ago | 16 days ago | |
TypeScript | TypeScript | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nest-react-websockets
-
Nest JS Websockets - Rooms
Download the repository at this commit to follow along.
Socket.io
-
Real-Time Sync Alternatives: Vaultrice vs. localStorage, DIY, Firebase, Pusher
This is the path of ultimate control. You spin up a Node.js server, add the socket.io library for WebSocket communication, and use a Redis instance to manage connection state and pub/sub messaging across multiple server instances.
-
Build a Real-time Chat App with Vue 3, Socket.io and Nodejs
So far, we have created our server using express’ HTTP Server and also initialized our Socket.io using the server instance we created.
-
10 Node.js 24 features you’re probably not using
Another heavily dependent external library for Node.js apps is the ws or Socket.IO for client connections to real-time data feeds or interacting with other WebSocket servers.
-
The Silent Chat: Fixing Real-Time Notifications That Didn’t Notify Anyone
-Socket.IO for real-time events
-
Ask HN: How would you build a turn-based multiplayer browser game in 2025?
I've recently been tinkering away at a turn-based multiplayer browser game in my downtime. I'm a Typescript guy so my current tech stack is Next.js, Node.js, and ws[0] for WebSockets (though I'm thinking of switching over to socket.io[1] given how much more they provide out of the box).
Right now my main concern is how to handle continuous deployments without interrupting ongoing games (amongst other WebSocket challenges[2]). I was planning to deploy via Coolify, but am considering other options given that their zero downtime deploys still needs some love[3].
How would you approach building a turn-based multiplayer browser game in 2025?
[0] https://www.npmjs.com/package/ws
[1] https://www.npmjs.com/package/socket.io
[2] https://news.ycombinator.com/item?id=42816359
[3] https://news.ycombinator.com/item?id=43589794
-
Mastering WebSockets with Socket.IO: A Comprehensive Guide
In line 32 we have the socket.io editaData event which handles data editing in the server. When the user clicks edit in the client, the server searches for the data using the findIndex method. If it exists it updates the data in the crudData array then it broadcasts the edited data to the client.
-
Tools for Building a Modern JavaScript Booking Application
Tools like Socket.IO and WebSockets significantly simplify the implementation of real-time communication between client and server.
-
Custom Angular and Karma Test Extension for VS Code
To capture the test execution status, I wrote a custom karma reporter(a good resource) with which I was able to emit the test execution status back to the vscode extension. I am using socket.io to do this communication.
-
Stop sharing your screen, start sharing your website
Building such experiences is already possible, using libraries such as socket.io and React Together. This blog post explains how to easily add real-time collaboration to an existing React app, using React Together.
-
SSE, WebSockets, or Polling? Build a Real-Time Stock App with React and Hono
Complexity: WebSockets require you to handle connection lifecycle events, such as errors and reconnections. While the code example I provided could suffice for simple use cases, more complex use cases might arise, like automatic reconnection and queueing messages sent by the client when the connection wasn't open. For that, you can either extend this code or use an external library like react-use-websocket for a relatively lightweight react implementation or socketio for both client and server SDKs.
What are some alternatives?
sudoku - Multiplayer concurrent sudoku. The winner is the player who fills the last cell correctly.
SocketCluster - Highly scalable realtime pub/sub and RPC framework
React - The library for web and native user interfaces.
peerjs - Simple peer-to-peer with WebRTC.
Redis - For developers, who are building real-time data-driven applications, Redis is the preferred, fastest, and most feature-rich cache, data structure server, and document and vector query engine.
SockJS - WebSocket emulation - Node.js server