Questions tagged [stomp-websocket]

STOMP Over WebSocket provides a straightforward mapping from a STOMP frame to a JavaScript object.

10 questions
11
votes
2 answers

Spring websocket - how to get number of sessions

I'm using this tutorial and I'm trying to figure out how to get the number of current sessions. My WebSocketConfig looks like this (copy and paste from the tutorial) : @Configuration @EnableWebSocketMessageBroker public class WebSocketConfig extends…
Leander Gilles
  • 223
  • 1
  • 2
  • 7
2
votes
1 answer

StompJS javascript client logging like crazy on console

I am using the StompJS javascript client along with SockJS It seems to log every single message and event on the chrome dev console. How do i prevent StompJS from logging every single event on the console?
pdeva
  • 43,605
  • 46
  • 133
  • 171
1
vote
0 answers

How to resolve "org.eclipse.jetty.websocket.api.MessageTooLargeException" for Java WebSocketStompClient

When I'm running a Java WebSocketStompClient, I got below error: org.eclipse.jetty.websocket.api.MessageTooLargeException: Text message size [73728] exceeds maximum size [65536] Sample code: import org.apache.log4j.Logger; import…
Bob Lee
  • 27
  • 5
1
vote
0 answers

send data from spring boot to client with stomp websocket

I want to send data from Boot(Server) to client! I am using stomp websocket! WebSocketClient doesn't work with error that the HTTP response from the server [200] did not permit the HTTP upgrade to WebSocket! It's my Java Stomp WebSocket client…
JinYeong Kim
  • 139
  • 1
  • 7
1
vote
2 answers

Spring boot connection failure with RabbitMQ Web STOMP Plugin

I am trying to use RabbitMQ Web STOMP Plugin with Spring boot. I have started the RabbitMQ server with the 15674 port exposed for the http/web-stomp protocol. When I run the Spring boot project, I get the below…
simplelenz
  • 877
  • 1
  • 9
  • 22
1
vote
2 answers

React native: Stomp websocket not working in android

I try use https://github.com/jmesnil/stomp-websocket and https://github.com/JSteunou/webstomp-client My server use Spring-boot Mycode: var Stomp = require('stompjs/lib/stomp.js').Stomp; let client = Stomp.client(url); client.connect({}, function…
Sy Trung
  • 11
  • 1
  • 4
1
vote
1 answer

Stomp Interceptor not working

I am using Spring WebSockets. It works well, but I now have a case where I need to modify a message before it is sent to the web client. Therefore I created the following Interceptor: @Component public class StompMappingInterceptor extends…
stefan.m
  • 1,912
  • 4
  • 20
  • 36
0
votes
0 answers

Using STOMP Over WebSocket (stomp.js) connecting to Artemis Server, but setting selector is ineffective

The duration addressing and queue setting of Artemis server is: false false
Caspar
  • 31
  • 3
0
votes
1 answer

Invoking Spring Stomp Websocket from Rest Api not working

I have a requirement in which I have to send a message through spring stomp WebSocket from inside a rest API, after searching a lot on the internet I have found a solution, I tried that but it's not working. Although the same code working perfectly…
0
votes
1 answer

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 some cases I want to send message to whole users…