20,534 questions
0
votes
1
answer
65
views
Handling concurrent task updates in a real-time Kanban board using Socket.IO without UI flickering
Problem
I need to implement a concurrency handling strategy.
If two users try to move or edit the same task at exactly the same time, I want to prevent:
Data corruption
UI flickering
Tasks jumping ...
0
votes
0
answers
113
views
How to emit Socket.IO events from a BullMQ worker running in a separate process?
I’m building a Node.js backend where:
BullMQ is used for background jobs (invoice generation, emails, etc.)
Socket.IO is used to send real-time updates to clients
BullMQ workers run in a separate ...
1
vote
2
answers
87
views
Why isn't this emitting the message?
@app.route('/3x3/online/<username>', methods = ['POST'])
def online3x3(username):
if username == session['username']:
socketio.emit('create', (session['username'], 1), namespace = '/...
1
vote
0
answers
72
views
Socket.IO Livestream Not Cleaning Up After App Crash (Zombie Stream Issue)
I’m building a Node.js + Socket.IO livestreaming backend where a user can have only one active livestream at a time. When a mobile app is force-closed or crashes, the client does not send a ...
Best practices
0
votes
0
replies
24
views
How does one prevent stale ack caused by exceptions?
I have a nest server that has a few @SubscribeMessage functions that fetch data and return it to the client. If the client's request if bad, the functions might throw an error. However, the client's ...
1
vote
1
answer
81
views
Socket.io Custom Headers
So apparently for authentication you need to pass extraHeaders in socket.io, meaning you can't use http-only cookies.
Since I have this code over here, trying to connect to the most barebones socket....
0
votes
0
answers
81
views
Socket connection issue in react-native and nodejs
I’m currently working on a logistics app that manages goods transportation in my area. The tech stack includes React Native for the mobile app, Node.js / Express.js for the backend, MongoDB as the ...
0
votes
0
answers
32
views
Server is listening, but Socket.io client can't reach server
I've spent countless hours trying to figure this out, the code worked perfectly fine on my machine, but stopped working on the server, it just kept throwing "example.com/socket.io/?EIO=4&...
1
vote
2
answers
135
views
Frequent update of records in database
I’m building a real-time chat application using NestJS, Postgresql (Main DB), Redis and Socket.IO.
My database schema (simplified) looks like this:
-- Chats
table chats (
id serial primary key,
...
Advice
0
votes
2
replies
71
views
Code Review: Websockets integration using NestJS for trading application
I’m currently building a trading platform that requires streaming real-time price updates to the UI. I’ve implemented a WebSocket gateway and added handling for common issues such as:
Ghost/...
0
votes
0
answers
26
views
Integrate socket.io namespaces with Node Cluster
I am trying to integrate socket.io with Node's HTTP alongside Node's Cluster Module. Consider the reproducible example:
index.js:
let cluster = require('cluster')
let fs = require('fs')
let http = ...
0
votes
0
answers
62
views
Error with Turso connection database on Node project
I'm following a Node.js tutorial where the database is created with Turso but I have a problem, the connection is created well but I can't realise any type of query. I'm using these libraries:
import ...
0
votes
1
answer
63
views
Socket io is not connecting from Angular to backend nodejs
So I am trying to build a dynamic dashboard application ,so I use socket io 4.8.1 , and In frontend as well I installed the same version , now I used polling socket io it actually worked with polling ...
0
votes
0
answers
46
views
How to prevent auth token from being stolen on the Nextjs client side of socket.io?
This is my nodejs server socket.io code:
const io = new Server(server, {
cors: {
origin: "*", // Allows connections from any origin
methods: ["GET", "POST"] // ...
1
vote
1
answer
114
views
Python Socket.IO with FastAPI in Kubernetes 499 and 426 error
I am trying to setup a socketio server, but having issues with client connection either getting 499 or 426 error -
I have tried port forwarding from the pod to my local and run curl command that also ...