All Questions
13,228 questions
0
votes
0
answers
34
views
Connection failed: socket.io
how are you?
Guys, I'm trying to use socket.io to create a chat, locally everything works, when I put "Cpanel" into production I can't connect.
Displays message below:
websocket.js:43 ...
1
vote
1
answer
64
views
Flutter socket_io_client not updating query token on reconnect – server keeps receiving old 'public' token
I'm building a mobile app in Flutter that connects to a Node.js WebSocket server using socket_io_client. The WebSocket is used for both:
public unauthenticated users (to receive global broadcasts)
...
0
votes
0
answers
32
views
AWS NodeJS Websocket server "sleeping" - no error
I've got a NodeJS websocket running on an EC2 instance.
I'm keeping it alive with PM2.
I'm working on it via SSH using vis studio code.
The system is running well and I have about 500 clients (desktop ...
-1
votes
0
answers
44
views
Socket.io message length limit
I'm trying to implement Scoket.io in my NextJs project for notifications, but I have some issues. First of all, I must say I haven't worked with WebSockets before and trying to learn with this ...
-1
votes
1
answer
30
views
Why does socket.io client give XHR polling error: blocked by cors policy when using self-hosted server address?
I'm trying to self-host a node.js socket.io (v 4.8.1) application (not using Express). Everything works fine locally, when the server and client are on localhost:8000 and localhost:5173 respectively, ...
1
vote
2
answers
87
views
Socket.io is not sending value to room
I am working on a project using ReactJS, NodeJS and Socket.io
I am not able to understand why I am getting the "hi" part of socket but not the "code" part
the "hi" part ...
0
votes
0
answers
57
views
use socket io in all backend [duplicate]
I'm trying to send a notification to a user using Socket.io, but I'm encountering an error. I want to call a function from the server file in another backend file to send a notification.
Server File (...
0
votes
1
answer
29
views
How to ensure the notification delivery and know if the notification was recieved by the end user?
I am working on application in which notification delivery is too important, not only the delivery but also about the status of it, like it is received by the end user or not?
I do have some in my ...
0
votes
0
answers
18
views
Socket IO Invalid WebSocket frame: RSV1 must be clear ( permessage deflate )
require('dotenv').config();
const Agent = require(`./Models/agentModel`);
const logger = require(`./logger`);
const adminRoom = 'admin-room';
const socketapi = {
io: null
};
function setupSocket(...
0
votes
0
answers
28
views
Socket.io with pm2 cluster mode
I am running a node app via pm2 using cluster mode (-i 4) and this same node app uses socket.io and since running in cluster mode, I have been not been able to connect to the socket.
I have followed ...
0
votes
1
answer
39
views
Where do I find server response data in socket.io-client?
I am interested in creating (for testing purposes) a fake client that mimics a browser accessing a route in a Node.js HTTP server. In the minimal example below, I am able to point an actual browser to ...
0
votes
0
answers
35
views
Socket check for triggering timeout
socket.timeout(timer).emit('foo', (error, response))
I need a method to check if the timer is started
0
votes
0
answers
25
views
keepSessionInfo for passport.js not working for versions 0.7-0.6?
Any calls made to my passport.authenticate() middleware deletes and recreates my req.session object. I need it to stay consistent because it's shared with my socket.io connection. After some digging I'...
0
votes
0
answers
39
views
Socket.io doesn't work on secure (tls/ssl) connection
I am developing an web app that utilize Socket.io for communication between client's browser and backend.
For the environment, I ran both backend and frontend under single container, and it works ...
0
votes
0
answers
22
views
redis + socket.io : How to get total clients & clients per rooms across all nodes/instances
Searching for this I found nothing but very old posts that were no longer applicable or not quite what I was looking for. AI assistance was circling between 3 broken solutions and the documentation on ...