Questions tagged [stompjs]

The Stomp module provides you with a client interface for interacting with STOMP messaging brokers.

98 questions
0
votes
0 answers

Sometimes convertAndSend doesn't send the messages [Spring Boot, WebSocket]

I'm making a chatting server with Spring Boot now, and the server works like this. When a client sends a message to the server, then the server sends the message to the message broker(Google Cloud PubSub). After taking the message from the…
0
votes
0 answers

WEBSOCKET: How to pass STOMP attributes in stompjs?

While extending org.springframework.web.socket.server.support.DefaultHandshakeHandler, there is a possibility to access determineUser method, offering attributes like so: package com.example.websocketchat.stomp_principal; import…
Pioter88
  • 133
  • 1
  • 6
0
votes
0 answers

Install an npm package and "ReferenceError:Window in undefined" get occurs

I'm working on a React project and tried to install @Stomp/stompjs package which uses the window object under the hood. At the first place, that I run the project the below error occurs: ReferenceError: window is not defined at…
0
votes
1 answer

clear ActiveMQ queue with stomp

Is there any way I can clear/delete ActiveMQ's queues from either stomp.py or stomp-js in Angular TypeScript?
qwerty_99
  • 640
  • 5
  • 20
0
votes
1 answer

CORS issue when working with spring sercurity and websocket with stompjs and sockjs-client

It is an error when I want to add websocket into my web. This is my WebSocketConfig @Configuration @EnableWebSocketMessageBroker public class WebSocketConfig implements WebSocketMessageBrokerConfigurer { @Override public void…
0
votes
1 answer

Rabbitmq set name for webstomp / stompjs temporary queues

I just wanted to ask if it is possible to specify the name for the temporary auto-delete queues, which are bound to the destination when I subscribe to a webstomp queue/exchange. The reason is, that I would like to specify a fine graded JWT…
BvuRVKyUVlViVIc7
  • 11,641
  • 9
  • 59
  • 111
0
votes
0 answers

how to manage in spring boot kafka many user reading from one topic

I have a problem managing multiple notifications using spring boot kafka and websocket many thing but I can subscribe and publish without any problem but if I have many users I can not handle it
0
votes
0 answers

STOMP mock server with Angular

I've an Angular app that successfully commnunicate with on a STOMP Websocket provided by a Springboot server. For some reasons, I need to have a mock server to be able to run Angular without the springboot server. I tried diffferents solutions but I…
valerossi46
  • 153
  • 1
  • 3
  • 10
0
votes
0 answers

Can I use STOMP in nodejs without message broker?

I'm working on creating mock sever for my Angular application. On frontend I have library for STOMP. And regularly my frontend communicates with Api written in Java. But additionally I start mock nodejs api which returns hard coded Json files when…
missbells
  • 43
  • 4
0
votes
0 answers

@stomp/stompjs latest, subscription() getting in unexpected responses

I am using the latest @stomp/stompjs package in react and it appears to be not working as described so I was wondering if anyone know what was going on. When I do stompClient.subscribe() I expect only 1 message from the backend. But I normally get…
0
votes
0 answers

how can the server detect internet failure at client side using stomp

I'm using Spring Messaging v 5.3.21 for WebSocket. I have following interceptor to validate each request. @Override public Message preSend(Message message, MessageChannel channel) { try { StompHeaderAccessor headerAccessor =…
0
votes
0 answers

@stomp/stompjs/esm6 connection in React is not working after porting to newest releases

I am doing my first react project, which is to port a demo web page what is using react 16 @stomp/stompjs/esm6 to talk to the back end. After recoding to use react 18.2 and the stomp 6 version, the connection is not working as before. It decides…
0
votes
0 answers

Is it possible to use websockets to send a request and get a response right after (without the publisher/subscriber structure)?

I am using spring-websocket together with Kotlin Multiplatform, SockJS and StompJS. I've got my application up and running, mainly using this tutorial from Spring. The frontend is able to send messages to the backend (via the @MessageMapping…
Flumen
  • 169
  • 2
  • 12
0
votes
1 answer

StompJS Timeout on watchForReceipt() method

I've built a livechat application using StompJS on the client. I'm using client.waitForReceipt() to confirm broker consumption but I want to add a timeout on it so if they fail, it doesn't wait forever. Is there a way to set a timeout on this or…
Snap3y
  • 19
  • 4
0
votes
1 answer

React and Websocket messaging to server

So I'm having issues with a single component that displays a list pulled from a resource server. Then it uses Stompjs to establish a websocket and send messages. When I load the client, the Dev Console shows logs that it tries to call onConnected…