28,317 questions
0
votes
1
answer
39
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 ...
-3
votes
0
answers
29
views
AWS ECS + NLB deployment: LiveKit AI voice agent works locally but voice/websockets fail in production
I’ve built an AI voice agent that connects with a student in real-time. Here’s the setup:
The student asks questions via the frontend.
The agent follows predefined instructions and responds using ...
0
votes
0
answers
118
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
27
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 really 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, ...
-1
votes
0
answers
31
views
Supabase Realtime Broadcast service sending but not receiving messages
I have an app where users are able to join a group and broadcast messages to that group. This is the relevant code:
await supabseClient.realtime.setAuth();
const channel = supabseClient.channel('test'...
0
votes
1
answer
66
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 ...
0
votes
0
answers
33
views
FastAPI WebSocket + Kafka: Only the last connected client receives messages [closed]
I'm building a real-time dashboard using FastAPI WebSockets + Kafka. Everything works perfectly for a single user, but when multiple users connect, only the most recently connected user receives ...
1
vote
0
answers
31
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
33
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
46
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 : [...
-5
votes
0
answers
114
views
How to reduce slippage? [closed]
I’m developing a micro-scalping trading bot in C++ and I’m running into a latency issue: the bot sends an order at $1.00, but by the time it reaches the exchange, it gets executed at $1.20.
I’m ...
Advice
0
votes
2
replies
54
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/...
0
votes
1
answer
52
views
How to reconnect a web socket? I'm getting an error "ConnectionClosedOK"
I am using this library (https://github.com/sammchardy/python-binance) to download data from binance. I get the following error after running data collection script for 3 days or so.
INFO:root:{"...
0
votes
0
answers
53
views
Authentication for graphql subscriptions does not work with @Authenticated
I am using Quarkus 3.27.0 and trying to secure GraphQL subscriptions with the @Authenticated annotation. I pass the Authorization header with a valid token when connecting, but the subscription ...
0
votes
0
answers
67
views
Firefox unable to connect to secure websocket (runs into NS_ERROR_NET_RESET / SSL_ERROR_RX_RECORD_TOO_LONG)
On a development server hosting a web application that can be accessed via http and https (through self-signed unsecure certifcate that needs the browser to force accept the certificate), Firefox won'...