The Stomp module provides you with a client interface for interacting with STOMP messaging brokers.
Questions tagged [stompjs]
98 questions
2
votes
0 answers
Sending large messages through STOMP failes on Client-Side
I want to send a file (like 4/5 MB) from my Angular-Frontend to a SpringBoot-Server. I am using STOMP via StompJS and whenever i try to send the content of the file, my client looses connection... (i think because of the message size => small…

fandrale
- 21
- 2
2
votes
1 answer
Subscribe to topic with Stomp Client but i don't get any notification don't work React Native and work on Angular
I want to subscribe to the topic with SockJS and Stomp Client I put the subscribe on the client inside onConnect function to make sure that the Client is connected, This my configuration for:
import getEnvVars from "./environment";
import {…

Mortadha Fadhlaoui
- 388
- 1
- 5
- 16
2
votes
1 answer
NgStomp use beforeConnect in InjectableRxStompConfig
I am trying to build a angular client that uses websockets, and I am using @stomp/ng2-stompjs
I am following this guide https://stomp-js.github.io/guide/ng2-stompjs/ng2-stomp-with-angular7.html
Everything works perfectly except that I need to set in…

Matteo Pasina
- 33
- 7
2
votes
1 answer
Stomp JS Basic Auth
I've implemented a server using Spring Stomp and now I'm trying to connect to my server using stomp-js rx-stomp.
What I find really awkward is that the JS implementation is not working, although I've managed to make it work using the Java stomp…

Cosmin Stoian
- 757
- 10
- 15
2
votes
0 answers
STOMP is receiving null values on backend Java Springboot
this is my first experience with websockets and I am still adjusting to springboot.
I was following this tutorial https://www.callicoder.com/spring-boot-websocket-chat-example/ and had it running fine.
However I made some adjustments to the code and…

Kevin Haro
- 21
- 1
2
votes
1 answer
Error during WebSocket handshake: Incorrect 'Sec-WebSocket-Accept' header value
I have a spring-boot websocket connection which sits behind spring-security-kerberos to achieve SSO. This works as expected but if I restart the server I see clients fail to re-connect with the error Error during WebSocket handshake: Incorrect…

Jon Freedman
- 9,469
- 4
- 39
- 58
2
votes
0 answers
No converter found to convert payload type .. to expected payload type [byte[]]
I have a Stomp Over WebSocket client using Stomp.js that send a message to a queue:
var destinationProductProd_02 = "jms.queue.shat";
function sendMessageProduct() {
var product = {
productId : "111",
name : "laptop",
…

Sergio
- 441
- 9
- 22
2
votes
1 answer
PathVariables in Spring WebSockets @SubscribeMapping not working
I am trying to something similar to this "Path variables in Spring WebSockets @SendTo mapping"
But I want to send a table name as additional information to @SubscribeMapping("/topic/data").
"tablename" can be anything based on my need(what I want to…

Bubble
- 57
- 9
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 manage errors with STOMP
I'm wondering if there is a native way to manage errors received by STOMP on the client side like you could with fetch? I currently use @stomp/stompjs and have to manage some errors after a publish to the backend was rejected, like if an action is…

Sebastian
- 153
- 1
- 10
1
vote
0 answers
@stomp/stomp.js: can I detect when a subscription was done successfully?
I am using @stomp/stomp.js to connect to a Spring Boot service that allows websocket connections via STOMP. The spring boot service uses interceptors to check whether a user is allowed to subscribe to a topic or it should drop the subscription.
My…

GeorgeG
- 362
- 2
- 16
1
vote
1 answer
Spring @SubscribeMapping being called
i am trying to make a webpage for multiplayer games similar to the jackbox party pack series.
I want to do this by creating sessions/rooms which are identified by a randomly generated 4 letter sequence.I am using spring as a backend and react.js…

roboter5123
- 11
- 2
1
vote
0 answers
Handshake failed due to invalid Upgrade header: null with Springboot and Tomacat
The following is the error I'm getting in the server logs.
04:42:53.259 [41] [http-nio-8080-exec-8] ERROR org.springframework.web.socket.server.support.DefaultHandshakeHandler - Handshake failed due to invalid Upgrade header: null
I have gone…

pacman
- 725
- 1
- 9
- 28
1
vote
0 answers
Spring Boot 2.6.x (and Spring Security) + Websocket + Angular 13 (rx-stomp)
my application is structured as follows:
Spring Boot
WebSocket Config
@Override
public void configureClientInboundChannel(ChannelRegistration registration) {
registration.interceptors(new ChannelInterceptor() {
@Override
public…

fuerteVentura22
- 93
- 1
- 2
- 13
1
vote
0 answers
WebSocket connection to 'wss://...' failed
I am trying to establish websocket connection to the spring boot web server deployed in azure from anuglar application.
But connections are not getting success every-time.
It always fail for first time and then get connected after some point of…

Ravikumar
- 413
- 1
- 7
- 18