Questions tagged [stomp]

STOMP is a simple interoperable protocol designed for asynchronous message passing between clients via mediating servers.

STOMP is a very simple and easy to implement protocol, coming from the HTTP school of design; the server side may be hard to implement well, but it is very easy to write a STOMP client to get yourself connected to a STOMP server.

Versions of the STOMP specification can be found at:

1428 questions
15
votes
0 answers

Django channels with Spring Boot Websockets (StompSession) do not work

Hey there we want to use Django just to execute python code and use channels for the results. Implemented everything the websockets are not working as they should. If I try to send something from our Angular frontend to Django it works fine. And…
CptDayDreamer
  • 1,526
  • 6
  • 25
  • 61
15
votes
2 answers

Is it possible to send binary data with STOMP over WebSockets using Spring-WebSockets?

I am able to send and receive JSON with STOMP over WebSockets following spring documentation. However performance is poor at large high rates, so I wish to profile the use of binary messages. Spring-WebSockets 4.0 JavaScript client running in…
Adam
  • 35,919
  • 9
  • 100
  • 137
14
votes
1 answer

how to capture subscribe event in my webSocket server with Spring 4

I did a simple web socket communication with spring 4, STOMP and sock.js, following this https://spring.io/guides/gs/messaging-stomp-websocket/ Now I want to upgrade it to simple chat. My problem is that when user subscribes to new chat room, he…
sinedsem
  • 5,413
  • 7
  • 29
  • 46
13
votes
3 answers

How to get Session Id in Spring WebSocketStompClient?

How to get session id in Java Spring WebSocketStompClient? I have WebSocketStompClient and StompSessionHandlerAdapter, which instances connect fine to websocket on my server. WebSocketStompClient use SockJsClient. But I don't know how get session id…
Irina
  • 939
  • 1
  • 8
  • 26
13
votes
1 answer

SimpMessagingTemplate.convertAndSend with RabbitMQ works very slow

I'm using spring STOMP over Websocket with RabbitMQ. All works fine but simpMessagingTemplate.convertAndSend works very slow, call can take 2-10 seconds (synchronously, block thread). What can be a reason?? RabbitTemplate.convertAndSend take < 1s,…
Nickolay Savchenko
  • 1,474
  • 16
  • 28
13
votes
1 answer

STOMP vs WAMP over Spring-WebSockets

I am currently working on a project that needs to work with WebSockets. The clients will be the browsers only, so not interested in any message broker feature of these two. Although I don't think that it would be much a difference, but would be…
AliR
  • 2,065
  • 1
  • 27
  • 37
12
votes
2 answers

Open connections via Spring Websocket STOMP cause our server to die

So we use Spring websocket STOMP + RabbitMQ on the backend and we are having troubles with the open file descriptors. After a certain time, we hit the limit on the server and the server does not accept any connections, including both websockets and…
leventunver
  • 3,269
  • 7
  • 24
  • 39
12
votes
2 answers

SockJS Python Client

I have a website (Java + Spring) that relies on Websockets (Stomp over Websockets for Spring + RabbitMQ + SockJS) for some functionality. We are creating a command line interface based in Python and we would like to add some of the functionality…
Tk421
  • 6,196
  • 6
  • 38
  • 47
12
votes
0 answers

How to acknowledge websocket (spring websocket + stomp + sockjs) message delivery

I am creating a simple client-server demo using websockets. In this demo client can subscribe to different topics. Whenever server has anything to send, it will just send the message on the appropriate topic and only subscribed clients will get the…
Ravindra Thorat
  • 1,822
  • 1
  • 17
  • 24
12
votes
1 answer

Spring, how to broadcast message to connected clients using websockets?

I am trying to use websockets in my app. I have followed this tutorial: http://spring.io/guides/gs/messaging-stomp-websocket/ It works perfectly. When one of connected clients press button, this method is…
Michael
  • 321
  • 2
  • 5
  • 16
12
votes
2 answers

RPC over STOMP using Spring, and correctly handling server side errors propagated to clients

I need to implement RPC over STOMP, where the client runs with javascript in a browser, and the server side is implemented using Spring messaging capabilities. While using @MessageMapping is fine for normal messaging, I find using @SendToUser quite…
Alessandro Polverini
  • 2,301
  • 19
  • 29
12
votes
1 answer

Websockets over HTTPS with spring boot 1.0.0.RC5 and tomcat 8.0.3

I have a working example of the web socket (ws) non secure implementation application using spring boot 1.0.0.RC5 and tomcat 8.0.3. Now i would like to switch to wss i.e. using my own self signed certificate that had been loaded by tomcat…
Tito
  • 2,234
  • 6
  • 31
  • 65
11
votes
2 answers

Spring stomp websockets with vue.js

I'm trying to use Spring websockets (STOMP) with Vue but can't figure out how to do it or if it's even possible. My websockets work with plain JS but when i try with Vue i get stuck. Here is my vue code: var app = new Vue({ el: '#app', data: { …
pressbyron
  • 307
  • 1
  • 2
  • 12
11
votes
3 answers

how to await subscriptions established?

I have the following js code: stompClient.subscribe('/topic/clients', function (calResult) { updateClientsTable(JSON.parse(calResult.body)); }); $.get("/clients", null); and following server code(last line invokes it): @GetMapping(value =…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
11
votes
0 answers

Spring, Stomp: How to avoid multiple subscriptions to same destination by same user

I'm using Spring 4.2 websockets with stomp on the serverside. Client uses stomp.js. I noticed that it is possible for a user to subscribe the same topic-destination multiple times. When a message is delivered to this destination, the user receives…
Ickbinet
  • 277
  • 3
  • 12
1 2
3
95 96