529 questions
2
votes
0
answers
94
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
21
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
65
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
23
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
139
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
31
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
226
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
37
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
126
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
0
answers
50
views
Difficulty converting python web socket code to java
I'm trying to convert some python web socket code to Java (code that talks to a consumer device:)
ssl_context = ssl.create_default_context()
ssl_context.check_hostname = False
...
0
votes
0
answers
16
views
How to implement onFragmented that is sent from server websocket java? (org.java_websocket.Websocket)
source: https://javadoc.io/static/org.java-websocket/Java-WebSocket/1.5.7/org/java_websocket/client/WebSocketClient.html#sendFragmentedFrame(org.java_websocket.enums.Opcode,java.nio.ByteBuffer,boolean)...
0
votes
1
answer
58
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
252
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
22
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
135
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 ...