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
169
votes
5 answers

What is the difference between WebSocket and STOMP protocols?

What are the major differences between WebSocket and STOMP protocols?
LancerSung
  • 1,711
  • 2
  • 9
  • 3
66
votes
2 answers

How to disable debug messages on sockjs- STOMP

I have the follow situation: var options = { protocols_whitelist : [ "websocket", "xhr-streaming", "xdr-streaming", "xhr-polling", "xdr-polling", "iframe-htmlfile", "iframe-eventsource", "iframe-xhr-polling" ], debug : false …
J.R.
  • 2,335
  • 2
  • 19
  • 21
61
votes
3 answers

Path variables in Spring WebSockets @SendTo mapping

I have, what I think to be, a very simple Spring WebSocket application. However, I'm trying to use path variables for the subscription as well as the message mapping. I've posted a paraphrased example below. I would expect the @SendTo annotation…
bvulaj
  • 5,023
  • 5
  • 31
  • 45
49
votes
5 answers

Does Spring @SubscribeMapping really subscribe the client to some topic?

I am using Spring Websocket with STOMP, Simple Message Broker. In my @Controller I use method-level @SubscribeMapping, which should subscribe the client to a topic so that the client would receive the messages of that topic afterwards. Let say, the…
Mert Mertce
  • 1,614
  • 3
  • 21
  • 32
45
votes
3 answers

Where "user" comes from in convertAndSendToUser works in SockJS+Spring Websocket?

I would like to understand how convertAndSendToUser works in Spring SockJS+Websocket framework. In client, we would connect as stompClient.connect(login, password, callback()) which will result in connect request with "Stomp credentials" of login…
onkami
  • 8,791
  • 17
  • 90
  • 176
45
votes
5 answers

Spring WebSocket @SendToSession: send message to specific session

Is it possible to send a message to specific session? I have an unauthenticated websocket between clients and a Spring servlet. I need to send an unsolicited message to a specific connection when an async job ends. @Controller public class…
Tobia
  • 9,165
  • 28
  • 114
  • 219
35
votes
7 answers

Disconnect client session from Spring websocket stomp server

I've searched quite a bit and been unable to find this: Is there a way that a spring websocket stomp server can disconnect a client based on the sessionId (or really based on anything at all)? It seems to me that once a client connects to a server…
user1751547
  • 2,211
  • 4
  • 21
  • 25
25
votes
3 answers

Stomp.js is out of date and no longer maintained - which Stomp client to use with Spring Websockets?

I found it surprising that the current documentation for the Spring WebSocket Support directs users to use stomp.js for their client-side JavaScript implementation. This project, on the ReadMe on it's GitHub page, says: This project is no longer…
rikoe
  • 1,639
  • 1
  • 21
  • 29
22
votes
2 answers

Automatic reconnect with Stomp.js in Node.js application

I'm working with an application that is written in Node.js and Express, and I'm trying to use the Stomp.js client to connect to an ActiveMQ server. I can get the application to connect to ActiveMQ just fine using Stomp, but I am unable to get the…
Michael Oryl
  • 20,856
  • 14
  • 77
  • 117
21
votes
3 answers

Sending images/files over Sockjs + Spring Websocket + Stomp

I am working on a messaging application using Spring websockets(STOMP as a sub-protocol) and Sockjs. I should provide support to send files in messages. According to this ticket, sockjs does not support binary data, but STOMP does. I know that we…
Karthik
  • 4,950
  • 6
  • 35
  • 65
20
votes
1 answer

Invalid SockJS path '/userToken/info' - required to have 3 path segments

I have created a new Springboot websocket app and booting it results in the following message being written to the console every two seconds. Invalid SockJS path '/userToken/info' - required to have 3 path segments Invalid SockJS path…
stanlick
  • 1,442
  • 3
  • 16
  • 29
20
votes
1 answer

Redirecting websocket communication from client to a server to another websocket server

I already have a SimpleBrokerWebsocket implementation. Now I am migrating towards microservices based architecture and trying to create messaging as a separate microservice. To avoid breaking existing client deployments and to gradually move…
Vivek
  • 326
  • 1
  • 3
  • 15
20
votes
1 answer

STOMP or XMPP - Over websocket

I am working on a project which involves real time chat (messaging, including group chats). I have worked with websockets before, So I started working on this using spring-websockets and I did some reading about what is the best way to implement it.…
Karthik
  • 4,950
  • 6
  • 35
  • 65
20
votes
2 answers

Multiple rooms in Spring using STOMP

Is it possible to create rooms with STOMP and Spring 4? Socket.IO has rooms built in, so I'm wondering if Spring has this My code at the moment: @MessageMapping("/room/greet/{room}") @SendTo("/room/{room}") public Greeting greet(@DestinationVariable…
Dolan
  • 1,519
  • 4
  • 16
  • 36
20
votes
1 answer

How to find all users subscribed to a topic in spring websockets

When making something like a chat application using Spring Websockets, it is useful to know who all is subscribed to any given topic. For, e.g. presence data displayed in the clients. I know that I can implement ApplicationListener and keep my own…
npskirk
  • 1,188
  • 1
  • 8
  • 21
1
2 3
95 96