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
11
votes
2 answers

stomp message acknowledgement from client

I am using spring/stomp/websocket framework to notify users of messages asynchronously. I have done this successfully. However, I would be get ACK from the client so that some server side action can take place when this is done. The flow is roughly…
myspri
  • 283
  • 7
  • 14
11
votes
3 answers

Spring 4 STOMP Websockets Heartbeat

I can't seem to find a good resource on how to send heartbeats to clients using websockets in Spring! I have a basic server running using this configuration: @Configuration @EnableWebSocketMessageBroker public class WebSocketConfig extends…
Dolan
  • 1,519
  • 4
  • 16
  • 36
11
votes
1 answer

Which one to choose from STOMP/AMQP?

i am using the node.js as client to jms topic.There are two protocols available to make the connection on Topic. Theses are Stomp and AMQP. I am read brief about them at http://en.wikipedia.org/wiki/Advanced_Message_Queuing_Protocol and…
M Sach
  • 33,416
  • 76
  • 221
  • 314
10
votes
3 answers

How do I use transactions with Stomp and ActiveMQ (and Perl)?

I'm trying to replace some bespoke message queues with ActiveMQ, and I need to talk to them (a lot) from Perl. ActiveMQ provides a Stomp interface and Perl has Net::Stomp, so this seems like it should be fine, but it's not. Even if I send a BEGIN…
rjbs
  • 1,327
  • 11
  • 18
10
votes
3 answers

ValueError: signal only works in main thread when using Stomp

When I run this code I get this error: ValueError: signal only works in main thread I'm using ActiveMQ. RealTor is the name where i have my Spider(selogerSpider) this one help me for the scraping. import stomp from RealTor import selogerSpider from…
joes
  • 137
  • 1
  • 1
  • 7
10
votes
3 answers

Spring Websockets STOMP - get client IP address

Is there any way to obtain STOMP client IP address? I am intercepting inbound channel but I cannot see any way to check the ip address. Any help appreciated.
Damian
  • 593
  • 6
  • 27
10
votes
2 answers

Beginning to understand web sockets and http requests (and STOMP)

I have recently joined a new project where I am being tasked with implementing streaming data using web sockets. The idea is a bunch of information is being exposed currently through HTTP requests (in a RESTful manner) that they want exposed through…
user3037172
  • 577
  • 1
  • 7
  • 25
10
votes
4 answers

SockJS receive stomp messages from spring websocket out of order

I am trying to streaming time series data using Springframework SimpMessagingTemplate (default Stomp implementation) to broadcast messages to a topic that the SockJS client subscribed to. However, the messages is received out of order. The server is…
Zhichao
  • 599
  • 5
  • 14
10
votes
3 answers

Stomp over websocket using Spring and sockJS message lost

On the client side javascript I have stomp.subscribe("/topic/path", function (message) { console.info("message received"); }); And on the server side public class Controller { private final MessageSendingOperations
user2001850
  • 477
  • 4
  • 18
10
votes
3 answers

How to get session id on the client side? (WebSocket)

Is there any way to do this? Client side: function connectWebSocket() { var socket = new SockJS('/socket'); stompClient = Stomp.over(socket); stompClient.connect({}, function (frame) { console.log("connected"); }); } Server…
sinedsem
  • 5,413
  • 7
  • 29
  • 46
10
votes
1 answer

Stomp over websocket : The send buffer size exceeded the allowed limit

At client side I am using Stomp for websocket connection and server side I am using Spring 4 It client side I did configuration as var socket = new SockJS(urlBase + "/" + contextroot+'/hello'); stompClient = Stomp.over(socket); Below code…
Deepak Mule
  • 437
  • 5
  • 21
10
votes
3 answers

Sending message to single person using Spring STOMP websockets

On the internet I've found some info on how to accept and send messages using Spring and STOMP, however I did not find any good examples on how to send a message to a single user. Only how to broadcast them to every single one. Are there any good…
Kristof
  • 1,684
  • 2
  • 23
  • 49
9
votes
3 answers

I need a java stomp client library that works with ssl

I am trying several stomp libraries for java (gozirra, stompj, activemq). All these libraries have poor documentation, such as having only one example, and I have a serious problem: I need SSL support. The stomp+ssl protocol exists and is supported…
mgiammarco
  • 371
  • 5
  • 16
9
votes
1 answer

STOMP destination url vs endpoint url

The following code is from spring mvc documentation: @Configuration @EnableWebSocketMessageBroker public class WebSocketConfig implements WebSocketMessageBrokerConfigurer { @Override public void registerStompEndpoints(StompEndpointRegistry…
mzoz
  • 1,273
  • 1
  • 14
  • 28
9
votes
1 answer

Apache Config: Websockets Proxy WSS request to WS backend

Thanks in advance for any help. I am attempting to use Apache as a proxy between the web browser using WSS and a backend WS server process. Browser <---WSS---> Apache <---WS---> RabbitMQ Stomp I have HTTPS properly set up in Apache and serving up…
Travis Millburn
  • 307
  • 1
  • 4
  • 9