28,602 questions
0
votes
0
answers
14
views
WebSocket not connecting from Safari browser but works on all others
I have a pretty vanilla web socket example. Server is node using ws:
const express = require('express');
const WebSocket = require('ws');
const app = express();
const server_socket = new WebSocket....
1
vote
1
answer
59
views
How to await messages and not affect the main event loop?
I am writing a simple websocket script which registers & unregisters clients and then broadcasts random messages to them in a interval of 5s.
This is the code:
import asyncio, websockets, random, ...
0
votes
0
answers
13
views
Websockets not working on AWS elastic beanstalk (Socket.IO)
I'm deploying a Node.js app on AWS Elastic Beanstalk using Nginx as the reverse proxy, with socket.io on the backend and socket.io-client on the frontend. Everything runs on a single instance. Locally ...
0
votes
0
answers
38
views
Pong Game - Paddles Lagging While Ball Moves Smoothly in WebSocket Multiplayer
I'm building a multiplayer Pong game using WebSockets (Fastify + WebSocket API) for a school project, but I'm experiencing an issue where the paddles are laggy while the ball moves smoothly. Here's my ...
0
votes
0
answers
42
views
Socket.IO not connecting in Chrome browser (HTTPS, custom port 6530)
Socket issue:
My Laravel backend is hosted on https://example001.com/, while my React app is hosted on https://example002.com/ React uses the 4.8.1 version of the socket.io client, and Laravel uses ...
2
votes
0
answers
53
views
Python uvicorn app opens a cmd - how to stop it?
I've been building a WebSocket application and I opted for Python FastAPI + Uvicorn for server side. Having pretty much finished the app, I decided to pack the server into an .exe file. Even though I ...
0
votes
0
answers
12
views
quarkus-websockets: Sec-WebSocket-Protocol subprotocol negotiation seems to be broken
When using quarkus-websockets-next, you can configure supported subprotocols and have Quarkus propagate the client’s Sec-WebSocket-Protocol header via:
quarkus:
websockets-next:
server:
...
0
votes
1
answer
42
views
Quarkus WebSockets Next Intercepting HTTP GET Requests when using the @WebSocket annotation
After moving from quarkus-websocket to quarkus-websockets-next, any HTTP GET to a @WebSocket path now errors with
"Connection" header must be "Upgrade"
This is because the new ...
1
vote
0
answers
42
views
C# ASP.NET Core 8 server WebSocket sometimes hangs at ReceiveAsync() when data is available
I have a server application build with ASP.NET Core 8 using the WebSocket middleware.
I use websockets to send messages between a client and the server, in this case it is used to send audio from the ...
-1
votes
0
answers
40
views
websocket connection is getting lost with no response in the UI [closed]
Flask
@socketio.on('connect')
def handle_connect(arg):
logger.info("Client connected via WebSocket")
socketio.emit('engine_status_update', {"message": "Connected to ...
1
vote
1
answer
41
views
Spring Boot WebSocket connection fails when URL is too long
Long story short:
Can't connect to websocket in spring boot when the URL is long.
Some background info:
I'm trying to connect to a Binance WebSocket endpoint. The URL format looks like this:
wss://...
0
votes
0
answers
15
views
python server / JS client: socketio regular disconnects
In trying to reproduce errors from a larger project I have created a server using python's aiohttp and the following python-socketio (v5.12.0) namespace:
class MyNamespace(AsyncNamespace):
...
0
votes
0
answers
29
views
Laravel custom pusher auth fails to authorize subscriptions
My website has two different entities device and user that should be treated differently with custom logic. But, each can access the website and each has limited access to specific functionalities.
...
0
votes
0
answers
28
views
websocket and associated daemon killed when upgrading from python 3.7 --> 3.12.10 [closed]
i wrote some years ago a foto manager (fm) program in python3.7 that uses Websocket calls between a python daemon and javascript HTML pages in Firefox. things worked alright with python 3.7 - but now ...
0
votes
0
answers
29
views
eBPF transparent TCP interception and redirection
I am working on a project that will enable TCP traffic tunneling to remote networks and I have a few questions about my approach and specifically about the use of eBPF to transparently intercept ...