Questions tagged [socket.io]
Socket.IO aims to make real-time apps possible in every browser and mobile device, blurring the differences between the different transport mechanisms. It supports multiple transports, such as WebSockets, Flash sockets, long polling, and more, automatically falling back when a transport fails.
socket.io
20,914
questions
0
votes
0
answers
12
views
I am developing a community page using Next.js and Socket. How can I use socket to support sending and receiving images, videos, audio, and documents
i have implemented the functionality of the send image like this using socket.io here is my code block of that.
socket.on("send-image", async (data) => {
const { image, room } = data;...
0
votes
0
answers
10
views
Event handling for encapsulated socket.io server
I (js beginner) am creating a node.js webapp with socket.io. I encapsulated my socket server and namespaces to a single module that I call socketManager.js because I heard that this is generally good ...
0
votes
1
answer
18
views
Socket io (Error: server error) while in production - Using ECS Fargate with Elasticache Redis
I have been working on a chat application and everything seems to work in localhost but when I am in production I am having difficulty connecting my socket io client with my socket server.
This is the ...
0
votes
0
answers
16
views
Socket.IO Connection state recovery causing issue by changing the format of the payload to an array
I am using socket.io for my chat application and completed both the implementation on both the backend and frontend. Recently I started to horizontally scale the system, integrated adapters and it all ...
0
votes
0
answers
37
views
Is there a way to keep my program alive if the server it needs to connect to is not up and listening yet?
So I've been trying to figure out how to keep my program alive if this separate server that I'm running is not open yet. Right now my program's site pulls up successfully but then the second I try to ...
0
votes
0
answers
19
views
How to pass custom headers in the upgrade requests using a WebSocket client in my React App
I have tried using the native websocket library to initiate upgrade connection requests. However, my server requires the access token to be sent as a header.
Is there a way to pass access token as a ...
0
votes
0
answers
21
views
Error Code 137 while using Elasticache Redis with ECS Fargate
I am running containers on ECS Fargate and everything is working as expected but there is one issue. When I have this redis code running in my server side, the server container is failing to reach a ...
0
votes
0
answers
17
views
I'm trying to integrate webRTC video call in react native but remote stream appears black
I'm trying to integrate a webRTC video call in react native using socket.io for the data transmission system, but the remote stream appears black for both users while the local stream works well. I ...
0
votes
0
answers
19
views
Link device's gyroscopic orientation with that of 3d model on web
I am trying to build a model rocket that uses an old phone for reading gyroscopic data using a webapp (Flask and flask-socketIO). the "rocket phone" goes to /rocket and sends gyroscope data ...
0
votes
0
answers
17
views
Extending socket.io Socket interface with custom properties like user_id not recognized
I'm currently implementing authentication with socket.io in TypeScript for my project. When a user connects, I need to store their user_id on socket.user_id after verifying their JWT token in a ...
0
votes
0
answers
19
views
Group Voice chat application
I am building a project that features group voice chat, allowing a group of people to audio chat with each other in real-time. I am using the MERN stack for development and using Socket.IO on the ...
0
votes
0
answers
31
views
Socket.io not creating a connection in Express.Js Server
I am trying to create a socket.io based connection in my localhost server running on port 80. All of a sudden it has stopped working as i did not see my debug statements in session middleware as well ...
0
votes
0
answers
18
views
Flask socketio server crashes after a few days, ran out of ideas to fix it
for the past few months i've been running a socketio server for my multiplayer game.
it seems to work alright, only after a day or two to crash with these errors :
[2024-06-18 14:55:02 +0300] [250979]...
0
votes
0
answers
14
views
Socket io group chat logic
I'm building a chat app and i'm comfused at some point how should be socket io logic these are my things plese share if there is a more optimal option
1-) The new message events are emit for all user ...
0
votes
0
answers
18
views
How to configure/allow socket connections on my vps
I am looking for how to configure/allow socket connections on my vps. Currently I have deployed an API that supports websockets except that it just doesn't work on production. Unable to establish a ...