20,571 questions
-2
votes
1
answer
47
views
node.js socket reconnection failed
I'm new in Socket.io;
connection successful, "emit" fires and "on" listens successfully from both sides. but when i reload my frontend, then the connection lost; i found repeatedly ...
0
votes
0
answers
38
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
23
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
116
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
63
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
25
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
41
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
59
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
43
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"] // ...
0
votes
0
answers
73
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 ...
0
votes
0
answers
60
views
socket.io works in browser but failed in node.js
I'm trying to replicate a function of a website in node.js. And this function is implemented by establishing a websocket connection via socket.io. So I just imported socket.io in my node.js code, but ...
0
votes
1
answer
79
views
How to emit Socket.IO events from Bull queue worker running in separate process?
I have a Express application with Socket.IO and Bull queues. My worker processes run in separate processes from the main Express server, and I need to emit Socket.IO events from within the worker jobs....
0
votes
1
answer
74
views
Laravel Echo Server not receiving broadcast events even though WebSocket connection is successful
I’m using Laravel 8 with Redis and laravel-echo-server to broadcast events to my frontend.
The WebSocket connection is successful (status 200), but the broadcasted event from Laravel never shows up in ...
0
votes
1
answer
34
views
Where does the cookie value come from in socketio server when using express-session?
This is what the request headers look like in my handshake request
GET wss://<REDACTED>/socket.io/?EIO=4&transport=websocket HTTP/1.1
Host: <REDACTED>
Connection: Upgrade
Pragma: no-...
0
votes
0
answers
71
views
Android System Monitoring: ADB polling vs. APK with Socket.IO - Which has lower performance overhead?
I need to collect various system metrics from an Android device, including:
Frame rate (FPS)
Memory usage
CPU frequency
Battery level
Battery voltage
Battery temperature
Battery current
Power ...