All Questions
Tagged with spring-websocket grails
18
questions
1
vote
0
answers
115
views
Lost connection to https://... on production setup with grails backend
I trying to enable websocket on production environment without success.
In dev, locally everything start working after 5 minutes, but on prod with nginx+tomcat+CF I have a problem
Connection closed in ...
3
votes
0
answers
219
views
determineUser for STOMP via SockJs when using XHR Streaming
The client does not support WebSockets, so SockJs uses XHR Streaming and determineUser, while called when using WebSockets, does not get called at all. Is there another way to set the principal?
This ...
0
votes
1
answer
221
views
Grails 4: Grails Spring Websocket 2.5.0.M1 upgrade has broken websockets
After upgrading to Grails Spring websocket as part of my move to Grails4, my websocket implementation stopped working with the following error.
There appears to be a correlation with how asset ...
0
votes
1
answer
354
views
Spring Web Socket not broadcasting message to all application servers
I am trying to setup load balanced environment having 2 application server instances. I am unable to make spring web socket relay messages to all instances. Let's take a example to describe my problem ...
0
votes
1
answer
2k
views
DefaultHandshakeHandler's determineUser not called on Production Server
I have a grails project which uses Spring websockets. I have implemented the DefaultHandshakeHandler to create random principal name for each new session and use convertAndSendToUser to send messages. ...
9
votes
1
answer
1k
views
Spring (Grails) WebSocket logs instantly an error: SubProtocolWebSocketHandler - No messages received after *** ms
Having Grails 3.2.11 (Spring 4.3.1, Spring Websocket 4.3.9) I receive log error message that websocket session is idle.
2017-08-09 14:06:45,820 ERROR org.springframework.web.socket.messaging....
5
votes
0
answers
643
views
Grails 3.2.4 grails-spring-websocket 2.3 Error
=== UPDATE === (see original post below)
Though the bug fix initiated by zyro brought some improvements, there error is still not disappeared completely. It still looks like this:
31-Jan-2018 19:30:...
0
votes
0
answers
339
views
Spring Websocket between anonymous user and authenticated user
i am trying to create a chat feature where this chatting happen between anonymous user and authenticated user. like Zopin or tawk.io.
i tried to create/study from this link and it i already know how ...
0
votes
1
answer
589
views
Access WebSocketConfigurer with Grails 3 spring-websocket
I'm trying to register a WebsocketHandler in a Grails 3.2.x app with the spring-websocket plugin.
I tried creating a custom websocketConfig with the grails create-web-socket-config command, but the ...
0
votes
1
answer
563
views
Why does grails websockets connection fail but continue to receive messages that have been subscribed to in the browser while using an AWS ELB?
Using Grails 2.5.5 with the spring-websockets plugin 1.3.1 and tomcat 8.0.37.
While using an AWS Elastic Load Balancer, the following error is shown in the Javascript console when loading the ...
0
votes
1
answer
452
views
Send to certain connections only Spring Websockets
I am using grails/groovy so excuse the odd syntax, i am also new to using websockets so please let me know if i am going about this in the wrong way:
Using spring websockets i am able to send ...
1
vote
1
answer
474
views
Spring 4.0 WebSocket with Spring Security 3.2.3 in Grails
I need to add realtime updates to a system. I'm using Grails 2.5.0 with Grails Spring Security Core 2.0 RC4, which is based on Spring Security 3.2.3. There's a Grails plugin to add Spring 4.0 ...
0
votes
1
answer
333
views
Spring Websocket Plugin return value
I'm using the Spring Websocket Plugin and I want to send some logging-output to the client.
Here is my Code:
@MessageMapping("/run")
@SendTo("/topic/run")
protected String run(@Payload WebForm form) ...
2
votes
2
answers
2k
views
How to enable cross-origin requests in Grails websocket plugin
I tried to override the default configuration of the spring websocket plugin for Grails, like this :
@Configuration
@EnableWebSocketMessageBroker
class CorsWebSocketConfig extends ...
1
vote
0
answers
228
views
Error when calling session object inside Method decorated by Spring websocket annotations
Using the Grails spring-websocket plugin:
CurrentStatusController.groovy
@MessageMapping("/personExist")
@SendTo("/topic/personExist")
protected Boolean personExist(String personId)...