All Questions
Tagged with spring-websocket spring-mvc
132
questions
0
votes
1
answer
10
views
Spring 5 Websocket endpoint not reachable
I implemented a simple websocket endpoint in my Spring app (which is deployed in Tomcat) and I cannot reach it.
Configuration in my application context XML
<bean id="myWebSocketHandler" ...
1
vote
0
answers
25
views
Not Receiving WebSocket Notifications in Spring Boot Application
I am currently working on a Spring Boot application that uses WebSockets for real-time communication. I have set up a notification system where notifications are sent to a specific user via WebSocket. ...
-1
votes
0
answers
31
views
CORS failure - Origin not matching
Hope all are well?
I have been trying to work with websockets implementation in Spring. I am running into an issue with CORS where the client is sending the origin header as http://localhost:3000 ...
0
votes
1
answer
450
views
SockJS connections will be closed when multiple connections open
If only one SockJS (polling XHR) connection is open, then the app works fine. As soon as I additionally open it in a new window, then the connections will periodically be closed. The client is SockJS ...
0
votes
1
answer
2k
views
Correct the classpath of your application so that it contains a single, compatible version of ServletServerContainerFactoryBean
I have a problem trying to upgrade a spring project from 4.3.2 to the latest ones.
The project uses: 4.1.1.Release security and 4.3.2 Spring framework.
I am trying to upgrade them to 5.3.13Release and ...
0
votes
1
answer
300
views
How can I create a custom converter/deserializer for @Header values in Spring Websocket
I have a Websocket endpoint that I want to receive as header value not a string but an object.
This is how I defined the websocket endpoint
@MessageMapping("/gather/{resource}")
fun ...
1
vote
1
answer
595
views
Should path for REST api or destination for STOMP be part of spring boot application.properties? [closed]
I would like to know if it is good practise (or if it is even good idea at all) to put variables defining paths for REST endpoints and/or destination for STOMP over WS to spring boot application ....
0
votes
0
answers
744
views
Using Spring WebSockets to Update MySQL Database
I'm currently working on an application where the goal is essentially to create a clone of Slack using Spring Boot for the back end. I know I need to use web sockets for the real-time messaging but I ...
1
vote
2
answers
3k
views
Unit Test For Websocket Returns Null
I am trying to implement unit test for a Websocket in Springboot with JUnit.
I am following this link and it runs fine but gets null in the result, when i test my websocket with a browser it sends the ...
1
vote
1
answer
997
views
How to stop the spring MVC controller execution if client close the browser tab?
I'm developing a web app that use a spring websocket connection to send multiple message to a specific user.
I've got a spring mvc controller which when receive a STOMP from the client start sending ...
3
votes
0
answers
1k
views
How to ignore SSL certificate in springframe.sock
In my server-demo of springweb,I need a websocket client to connect my server by sockJs.
But it's err now:
SEVERE: TransportRequest[url=wss://localhost:8443/websocket/sj/endpoint-websocket/547/...
0
votes
1
answer
556
views
How can I broadcast message to all sockets?
I have a messaging app and I am using stomp-websocket with spring.
I am sending message to sockets like:
messageBean.convertAndSend( "/topic/message.${USER_ID}", ${Message_Object} )
However, for ...
2
votes
2
answers
6k
views
How to build a stream website like twitch with spring [closed]
I am building the WebSocket chatroom with spring message already.
Now I want to build the streaming website like Twitch.
I search a lot of way on stream. They always provide the framework of Andriod.
...
0
votes
2
answers
623
views
how to register custom converters for spring messaging, web sockets @DestinationVariable or jms @Header
I'm integrating spring web sockets capability into an existing spring mvc application, everything works as expected, except for enabling custom Spring Conversion on my inbound messages via @...
0
votes
1
answer
326
views
websocket push message programmatically using java code
java 8 Spring 5 mvc Websocket handler.
how do it push websocket message programmatically(using javacode) to the client ?
I followed following example.
http://boraji.com/spring-mvc-5-handling-...