Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey

All Questions

Tagged with
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 ...
Leonardo Arruda's user avatar
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) ...
Nico's user avatar
  • 51
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 ...
Glenn Angel's user avatar
-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 ...
Alejandro Peñafiel's user avatar
-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, ...
user124173's user avatar
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 ...
Nikhitha Sriram's user avatar
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 (...
Adar Katzir's user avatar
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 ...
Faraz Ali's user avatar
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(...
Manish Pandey's user avatar
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 ...
Daniel Zamloot's user avatar
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 ...
P. Lewis's user avatar
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
Nikolay10987's user avatar
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'...
chron1cle's user avatar
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 ...
isca_'s user avatar
  • 41
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 ...
FMaz008's user avatar
  • 11.3k

15 30 50 per page
1
2 3 4 5
882