524 questions
2
votes
0
answers
117
views
Java web-socket ssl certificate error while cert is valid
Hello I've been facing a weird problem the past few days.
I send out a demo of my app to a few people. however for around 75% of the people the demo didn't work, while for the other 25% it works great....
0
votes
0
answers
34
views
Spring WebSocket STOMP: convertAndSendToUser() not delivering private messages
I'm implementing private messaging with Spring WebSocket STOMP, but messages sent via convertAndSendToUser() are not being delivered, while broadcast messages work fine. The client subscribes to /user/...
0
votes
0
answers
133
views
Spring API Gateway configuration for reactive and non-reactive web sockets
I'm working on a WebSocket proxy microservice in Java, built using the org.java_websocket.* library. It connects to a remote server that streams VNC data. The goal is to allow clients—like noVNC—to ...
0
votes
0
answers
45
views
Spring WebSocket with SockJS not publishing messages to /topic destination
I’m trying to implement WebSocket support in my Spring-based backend using STOMP over SockJS. The WebSocket connection is established successfully, but messages published from the backend to /queue/...
0
votes
1
answer
182
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 ...
0
votes
0
answers
39
views
Websocket over StompJS not able to send message to host, running Springboot
I have an Angular fontend application with a Spring Boot backend that uses websockets over Stomp. The app can successfully send websocket messages from the host to the browser. I need to now send ...
0
votes
1
answer
291
views
Cannot connect to Jetty WebSocket v11
I am trying to implement server, as java plain application, where clients could connect to a web socket.
The goal is to connect client to a websocket via this url: ws://localhost:4550/api/myWebSocket
,...
2
votes
0
answers
46
views
Websocket always closed using Tomcat 10.1
I'm working on a Servlet application using WebSocket with a Tomcat 10.1 server. My goal is to create a one-player (host) game via a WebSocket and allow other players to join this game in real time ...
1
vote
1
answer
154
views
Java 21 websocket message not received
Why this code does not receive any message:
public class MainClass {
public static void main(String[] args) throws Exception {
CountDownLatch latch = new CountDownLatch(1);
try (...
0
votes
1
answer
67
views
Set data from WebSocket Server to JFrame components
I have WebSocket server:
@ServerEndpoint(value = "/demoApp")
public class MyWebSocketServer {
@OnMessage
public String onMessage (String message, Session session) throws IOException {...
2
votes
1
answer
387
views
Can't establish connection between STOMPjs and Java Websocket using STOMP protocol
I followed this Spring Boot tutorial on Websockets implementing STOMP protocol which works perfectly on its own. I wanted to connect it to a frontend app which uses Expo so I am using STOMPjs
After ...
1
vote
0
answers
25
views
Websocket disconnects during normal operation
I'm using the ESP8266 Wi-Fi SoC to send data to a server, but the connection intermittently drops during normal operation. For instance, from the PowerShell prompt, I can see the counter repeatedly ...
0
votes
0
answers
175
views
Implementing a simple websocket client in spring boot listening to 2 different websocket endpoints - but they always start executing together
I have 2 websocket endpoints producing related messages:
"ws://localhost:8032/posts"
"ws://localhost:8032/comments"
Comments are guaranteed to be published after a referred post ...
0
votes
1
answer
568
views
Jetty 11: Set idle timeout for WebSockets programmatically and via configuration file
I have found a way to set the idle timeout for Jetty 11 WebSocket connections programmatically by invoking factory.setIdleTimeout in an implementation of the JettyWebSocketServlet.configure(...
1
vote
1
answer
104
views
How to deny preSend() in ChannelInterceptor based on custom check via DB call
Within my WebSocketConfig class:
@Configuration
@EnableWebSocketMessageBroker
class WebsocketConfig(<...>)
I override:
@Bean(name = ["csrfChannelInterceptor"])
fun ...