28,322 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Advice
0
votes
2
replies
27
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
0
answers
48
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 ...
Advice
0
votes
1
replies
160
views
How to authenticate WebSocket connection when access_token is stored in HttpOnly cookies? (Spring Cloud Gateway + STOMP)
I’m building a WebSocket-based microservice architecture using Spring Cloud Gateway and STOMP WebSockets.
Users log in through the frontend, and the backend sets:
access_token (HttpOnly, Secure, ...
0
votes
1
answer
41
views
Filter for Quarkus WebSocket Next to pass JWT from query param to header
In Quarkus, how do I modify HTTP headers to add "Authorization" from query parameter "jwt"? My WebSocket client is browser-based, so I can't set the header in the client.
I tried ...
1
vote
1
answer
53
views
Go Gin/Gorilla WebSocket: Is conn.Close() enough to close client connection
So I’m kinda paranoid about stuff like this. I’m using the Gin framework and Gorilla WebSocket for the connection. My question is — is websocket.Conn.Close() enough to fully close the client ...
0
votes
0
answers
40
views
Flutter mqtt_client unstable: TCP works initially, WebSocket fails with IP
I’m building a Flutter app that receives MQTT messages from a Mosquitto broker on a Raspberry Pi. I’ve tried both TCP and WebSocket, but neither works reliably.
Setup:
Broker: Mosquitto (Raspberry Pi)...
1
vote
2
answers
104
views
Why does my FastAPI websocket connection close immediately after authentication?
I’m building a secure messaging app using FastAPI with JWT authentication and websockets.
My issue is that after the client connects with a valid token, the websocket closes right away with code 1006.
...
0
votes
0
answers
48
views
JavaScript cannot connect to WebSocket hosted by Kestrel
I have a Kestrel .NET server that serves a websocket connection:
var builder = WebApplication.CreateBuilder(args);
using (var db = new PTLCloudDatabase(builder.Configuration))
{
db.Setup();
}
...