Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
16 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
34 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
13 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
33 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
17 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
0 votes
0 answers
20 views

socket.io client not able to receive events stop working after some time. But when client emit it works i recive data on same socket id

I am working on chat app. where I use different socket events to send message from client to server through sockets. Here is how it works client send request with jwt on socket I check it is connected ...
kashan ilyas's user avatar
0 votes
1 answer
45 views

Configuring Socket.io and Caddy

I am trying to set up a socket server between my node backend and React frontend and am using Caddy as my reverse proxy. I am having trouble getting a connection once Caddy was introduced into the ...
Daniel Zamloot's user avatar
0 votes
0 answers
32 views

Setting up Nginx Webhosting with React and socket.io

I'm trying to configure nginx to work with my socket.io websockets. I have an app with a React frontend and a backend that uses Nestjs and Socket.io. The app runs fine on my local machine but now I'm ...
i'mlearningtocode's user avatar
0 votes
0 answers
16 views

TypeError: Cannot read properties of undefined (reading 'server') while calling socket.io in nextjs

I am trying to implement real-time notifications in a Next.js application using Socket.IO. My goal is to emit notification counts from the server and display them in the client. However, I’m running ...
Ponsakthi Anand's user avatar
1 vote
1 answer
26 views

How do I send big files in nodejs from the client to the server without an "Uncaught out of memory" error?

When sending a big file, such as one over twenty megabytes from the client to the server using a fetch request, the HTML page with the file input freezes for about 10 seconds and gives the error in ...
Aayush's user avatar
  • 13
0 votes
2 answers
35 views

Socket.IO: No acknowledgment received from client after server emits event

I am using Socket.IO to emit an event from the server to a specific client. The event is being successfully received on the client side, and the client processes the data without any errors. However, ...
Nilesh Vasudev's user avatar
-4 votes
1 answer
46 views

How to make my local server's IP address dynamic for a packaged web-view app?

The project is designed for local use, with the server built using JS and the client in HTML and JS. I want to package the client into a web-view app to make it easier to use. However, I'm currently ...
Tolofi's user avatar
  • 1
0 votes
0 answers
27 views

NodeJS Websockets with Traefiks

i do have a Angular App which uses Websockets (in dev environment, everything works, also for the WS stuff) together with Node JS. Now i do want to put all of this behind a traefiks, but i do get a ...
user17293718's user avatar
1 vote
0 answers
100 views

How do i implement audio group call functionality using WebRTC, Socket.IO and Node.js in my CRA project?

I'm looking to implement a feature in my application that lets users make audio group calls over the internet using socket.io, WebRTC and a Node.js server. I am currently using this library called ...
bry's user avatar
  • 11
0 votes
0 answers
55 views

Facing issue while creating Chat App using WebSocket in React

I'm new to React and working on a React project - to build chat application. The logic is when new user logs in, all users name are displayed on the screen. This is done by events. When user logs in ...
Razak Shaik's user avatar
0 votes
1 answer
45 views

Problem with running node socket.io server on azure web app

I have an app with a simple socket io server running on port 8080. const io = new Server(socketServer, { cors: { origin: "*", methods: ["GET", "POST"], ...
akkonrad's user avatar
  • 1,073
0 votes
0 answers
18 views

SocketIO message delivery guarantee with nats

I have some old code with architecture that is combining socketIO and Nats for message handling. Basically users are connected to the socketIO pods, those pods are connected to the Nats cluster of ...
Nasoto032's user avatar
0 votes
0 answers
18 views

Is it possible that emitting an event is listened by the frontend itself in socket.io

I'm working on a React-based chat widget that uses socket.io for real-time communication. In my handleSendMessage function, I'm emitting a message event using socket.emit. However, I'm also listening ...
Karan Nayak's user avatar
0 votes
0 answers
90 views

Connecting to the Socket.io server

I have a website on nextjs and I'm trying to implement a calling function using simplepeer. As I understand it, I need to have a signaling server for this and I created it based on socket.io. I also ...
Lambert's user avatar
  • 13
1 vote
1 answer
135 views

args[1] is received as null instead of socket acknowledgment callback

Problem: Emitting event from server along with the callback and expecting client to trigger callback as the event received to acknowledge the server. Client is getting args[1] as null when is should ...
Zain Ul Abideen's user avatar
0 votes
0 answers
66 views

Server failing to load resource and GET error being 404 (Not Found)

I have been trying to get my server using NodeJS, ExpressJS and SocketIO to work on my application so that the database can operate correctly but I keep getting these errors: :5500/socket.io/?EIO=4&...
TigerBeast997's user avatar
0 votes
0 answers
31 views

Node.js socket io server disconnects python socket.io client after 30 seconds

Node.js socket io server disconnects python socket.io client after 30 seconds.. server sends this: 0{"sid":"6afJCYzsh1Yz3bh3AAAA","upgrades":[],"pingInterval":...
Sathish Kumar's user avatar
0 votes
0 answers
51 views

How to Implement Job Scheduling with Exponential Backoff and Real-Time Status Updates in Node.js?

I'm working on a job scheduling system in Node.js where I need to: Schedule jobs to run at specified times. Retry failed jobs with an exponential backoff (i.e., progressively longer delays between ...
Abishake A's user avatar
0 votes
0 answers
31 views

Why is my query call returning extra data that I didn't request? [duplicate]

I have an issue where changing the status of a turn causes it to appear in other views where it shouldn't. For example, if I set a turn in 'technical support' to 'pending,' it also appears in 'payment'...
Swiftboat's user avatar
0 votes
0 answers
39 views

Two or more user joins the voice call WebRTC

const socket = io(); const peers = {}; const localStream = new MediaStream(); const localAvatar = document.getElementById('local-avatar'); const camera = document.getElementById('camera'); const speed ...
NIcks's user avatar
  • 1
0 votes
0 answers
28 views

Heavy DB operations in sockets.io for millions of users

I am working on a chat app and front end is in Flutter and socket.io which is implemented in Node JS. Now I want to make an event in socket for send_message which will actually an "on" event....
Kyson Howe's user avatar
2 votes
0 answers
253 views

BadRequestException: Your request timed out because no new audio was received for 15 seconds

I am getting this error in AWS transcribe. From the logs I understood my connection is valid & audio data is also valid. But in the server level getting this error. my component code: import { ...
SGR's user avatar
  • 2,427
0 votes
0 answers
44 views

Socket.IO WebSocket connection and CORS issues on production with Vercel

I'm facing CORS issues with Socket.IO in my MERN stack app hosted on Vercel. The setup works perfectly in development on localhost, but in production, I receive the following errors: WebSocket ...
Anmol ahuja's user avatar
0 votes
0 answers
23 views

React and socket io mobile disconnection instantly when switching apps

I am developing a game to be played most likely on a phone via the internet. I have it working as a beta but whenever I am on my phone and change apps it instantly exits and removes my player from the ...
Tommy Pritchett's user avatar
1 vote
0 answers
12 views

How to Move Active Conversations to Sidebar After Initiation in MERN Chat App?

I’m developing a real-time chat application using the MERN stack with Socket.IO for live updates. Right now, I have a popup that displays all users, which is triggered by a "START CHAT" ...
Econs's user avatar
  • 21
0 votes
0 answers
26 views

Socket IO Not Working On Google App Engine

I am using Socket.io for messaging in my React app with a NodeJS / Express API on App Engine. SocketIO is working fine locally, but when I deploy to GAE it fails to connect. I made several attempts to ...
gareth power's user avatar
0 votes
0 answers
29 views

How to handle notifications of a social media website with 1000 concurrent users

I have a social media website and I'm designing a notification service using Redis Pub/Sub and Socket IO. I have created channels for each group and a group personal for each user. Now each user will ...
Deep Kumar Singh's user avatar
0 votes
1 answer
27 views

Fail to connect a kotlin socket.io client to a node.js socket.io server

This is my server code const express = require('express'); const {createServer} = require('node:http') const {Server}= require('socket.io'); const {join} = require('node:path'); var PORT = process.env....
diego alvarez's user avatar
0 votes
0 answers
53 views

PM2 clustered NestJS application stops without errors after starting

I am trying to run my NestJS project in clustered mode using PM2. I am using the following command: pm2 start ecosystem.config.js Here is the content of the ecosystem.config.js file: module.exports = ...
Luka's user avatar
  • 1
0 votes
0 answers
48 views

How do I manage socket.io connections between multiple tabs of the same application?

TLDR I'm trying to understand how sockets behave between tabs and how to not have two connections at the same time on two different tabs for the same application. I have a React application. When I ...
Jess N's user avatar
  • 1
0 votes
0 answers
22 views

Messages Not Emitting from Current Device in Real-Time Chat

Frontend: Flutter (using socket_io_client ^3.0.0) Backend: Node.js (using socket.io ^4.8.0) I'm implementing real-time messaging in chat rooms. When I send a message from my device, it gets stored in ...
Kevin Chauhan's user avatar
0 votes
0 answers
27 views

socket.io - io.to(room) doesn't seem to work

for some reason socket.io won't send a message to a specific room. right before using the io.to(${socket.id}-devices).emit("event", data) i check what sockets are in said room by using: io....
Jalmar Verbraak's user avatar
0 votes
0 answers
96 views

WebSocket Connection Failing with "WebSocket protocol error" in Socket.io

I'm working on a WebSocket server using socket.io with Node.js and getting a connection issue. I keep getting the error WebSocketError: WebSocket protocol error when I try to connect using websocatand ...
Haris's user avatar
  • 1
-1 votes
1 answer
41 views

Error using Electron's ipcRenderer on a ReactJS app with Socket.IO

I have a scenario with a Electron Forge application together with ReactJS and Socket.IO: preload.js: import { contextBridge, ipcRenderer } from "electron"; window.addEventListener("...
Mendes's user avatar
  • 18.5k
0 votes
0 answers
34 views

Not able to make socket connection using Socket.io

This is my server code for my project in which am trying to setup video conferencing This is my github repo link you can run it and try it yourself using npm start for backend and npm run dev for ...
SUYASH's user avatar
  • 1
0 votes
2 answers
77 views

How to make a Node.js Socket.io server accessible via public IP?

I'm running a socket.io server on my Windows machine and want it to be accessible over the internet using its public IP. Here’s what I've done so far: Port Forwarding: Successfully opened and ...
fine line's user avatar
  • 185
0 votes
0 answers
56 views

Why my Worker Thread is not Printing Console log and Logger?

I am calling an worker Thread in My Node js application whose work is to take data from Redis Queue and process it(processing here include adding data to redis and also mongodb). My useCase Here in ...
Mustafa Dahodwala's user avatar
0 votes
1 answer
53 views

Socket.io behind a Nginx reverse proxy not working

I am serving my front-end static files with Nginx as follows. server { server_name <my_domain>; ...
kyatoukyaw's user avatar
0 votes
0 answers
17 views

Multiple Topic SOCKET.IO Connection

So i have User1, 2, 3, 4. every user has there own topic and subscribe to it in an angular application, and iam publishing the data to that topic via a post api, with that specific user jwt. But its ...
Akhil Gorantala's user avatar
0 votes
1 answer
44 views

Can't Access HTTP Server When Deploying to Hosting Service

I have the following code, and I basically can't access my server after deploying to fly.io/hosting service. I was wondering if I was doing something wrong. I'm getting this error specifically: ...
CodingChef's user avatar
0 votes
0 answers
30 views

Socket io not listening to events

I'm using node.js and socket.io v4.8.0. I'm trying to create a basic chat application that updates my postgress db once an event such as "send message" has been called. I am able to ...
Joe Ellul-Turner's user avatar
0 votes
0 answers
135 views

Node.js cluster with pm2, socket.io (and redis) - client can't connect to socket server

I have a node.js express app with socket.io and now I want to scale it a little and run it in a cluster using pm2. In order to do so, I have already extracted some functions (like cronjob handling) ...
Phil's user avatar
  • 29
1 vote
0 answers
38 views

Socket.io io.emit (broadcase to all clients) working in local but not working in remote server

server.js require('dotenv').config({ path: '.env/.env' }); var express = require('express'), fileUpload = require('express-fileupload'); app = express(), appPort = ...
Edcel Cabrera Vista's user avatar
0 votes
0 answers
92 views

WebSocket Connection Fails with "WebSocket is closed before the connection is established" Error

I'm having trouble with establishing a WebSocket connection in my React application. Despite my backend WebSocket server working as expected (verified using Postman), my frontend consistently fails to ...
siddesh's user avatar
  • 21
0 votes
0 answers
16 views

404 not found for socket.io in my nodejs prisma backend application using angular for frontend deployed on ubuntu

I have an application using angular and nodejs for the frontend. I have integrated a chat app using socket.io for nodejs, in my localhost it works fine. For the deployment, I have configured two ...
Mohamed Jmal's user avatar

1
2 3 4 5
265