28,274 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
58
views
Socket.IO Livestream Not Cleaning Up After App Crash (Zombie Stream Issue)
I’m building a Node.js + Socket.IO livestreaming backend where a user can have only one active livestream at a time. When a mobile app is force-closed or crashes, the client does not send a ...
-2
votes
0
answers
37
views
Websocket disconnects after hours; reconnect fails unless new tab or service restart (Nginx reverse proxy) [closed]
I use Nginx as a reverse proxy for a websocket. After running for hours, the websocket connection drops. Reconnect from the same tab fails, but opening a new browser tab connects immediately. ...
1
vote
1
answer
57
views
Socket.io Custom Headers
So apparently for authentication you need to pass extraHeaders in socket.io, meaning you can't use http-only cookies.
Since I have this code over here, trying to connect to the most barebones socket....
1
vote
2
answers
153
views
websocket.close() being called but not closing, not sending close frame
I have an HTML / JavaScript chat web app using WebSockets. I have also built a simple Ubuntu Linux / Apache2 / PHP socket server geared for WebSockets, using vanilla PHP without third-party libraries. ...
0
votes
1
answer
81
views
Why does my websocket connection get blocked?
I have a simple FastAPI server with just one WebSocket endpoint. It receives a terminal command, executes it locally, and broadcasts the stdout to the client every second:
from fastapi import FastAPI, ...
0
votes
0
answers
56
views
.NET Waxpeer Websocket subscribe event "send-trade"?
I'm integrating Waxpeer websocket to my .NET app, but I dont know how to subscribe event "send-trade"/"cancelTrade"? What payload should I send to websocket to subscribe those ...
2
votes
0
answers
97
views
SignalR WebSocket are unstable behind Traefik in Swarm [closed]
I've been looking for different solutions to this problem, but not results. Please help me understand the root cause.
I have Traefik v3.6 installed in Docker Swarm (Swarm consists of 3 nodes - 1 ...
0
votes
1
answer
56
views
Twilio Signature validation for ConversationRelay WebSocket with Java SDK
In https://github.com/enola-dev/enola/pull/1927 I attempted to add signature validation for WebSocket authentication security to my https://github.com/enola-dev/twilio-conversation-relay-java Java ...
0
votes
0
answers
151
views
Is it possible to connect to a local Python server using secure web sockets from a browser console on an HTTPS webpage?
We installed websockets for Python on macOS using this terminal command:
(.venv) a@as-MacBook-Pro dic % python3 -m pip install websockets
server.py:
#!/usr/bin/env python3
"""Secure ...
0
votes
1
answer
63
views
How do I use Socket.io with Fastay? I can’t access the server instance
I’m trying to run Fastay.js as a separate backend, and I need Socket.io because my app depends on real-time features. But I’m stuck: Fastay doesn’t give me access to the underlying HTTP server, and ...
0
votes
1
answer
77
views
Alternative to local window storage in browser
I have an application that consists of three parts: a Python server application, a web front end that is connected to the Python tool via WebSocket, and a second website that is connected to the first ...
2
votes
0
answers
56
views
Socket with SignalR and kubernetes
I encountered a problem when deploying a socket application using signalr. I connect with the longpolling method and it still works, but the websocket gives an error: Error: Failed to start the ...
0
votes
0
answers
37
views
EKS SignalR Hub - ALB Connection Handling Issue
SignalR hub running as an EKS pod handles 700 VUs via ALB but fails at 720+, yet successfully handles 1000 VUs via kubectl port-forward with 85% free CPU and 43% free memory. This confirms the ...
Advice
1
vote
1
replies
48
views
I would like to know why the ref in my onMessage handler requires spreading before flushing
Here is my on message handler:
const onMessage = (event: MessageEvent) => {
try {
const message = JSON.parse(event.data);
const normalizedMsg = Array.isArray(message) ? message : [...
Advice
0
votes
2
replies
67
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/...