Questions tagged [stompjs]

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

98 questions
1
vote
1 answer

StompJs only works in debugging mode - React Native

import * as Stomp from "stompjs"; import _ from "lodash"; export const MESSAGE_TYPE_CHAT_TYPING = "ChatTyping"; export const MESSAGE_TYPE_CHAT_MESSAGE = "ChatMessage"; export const RECONNECT_DELAY = 3000; export function wsConnect(user, callback,…
Anamul Haque
  • 7,069
  • 5
  • 23
  • 38
1
vote
1 answer

RabbitMQ StompJs recieving just one Message

I'm trying to recieve a Message from the RabbitMq-Que with the Stomp-plugin. This works fine but the Problem is that I get every Message from the Queue. So if the Queue has 13 Messages, I get 13. The Key is that I just want to get 1 Message and…
Homer Tw
  • 85
  • 9
1
vote
2 answers

disable stomp debug output in jhipster

I am sitting here for hours to find out how I can disable the debug output of stomp.js. I am actually getting this output in development + production environment: Web Socket Opened... webstomp.js?afe9:238 >>>…
Andrioshe
  • 83
  • 2
  • 9
1
vote
1 answer

wildfly 8.2.1 + spring mvc + spring-websocket (simple-broker) + sockjs + stomp

I have a problem with websocket specifically with SimpMessagingTemplate and simple-broker that provide spring (version 4.3.4.RELEASE). I send to user message in class: @Autowired SimpMessagingTemplate simpMessagingTemplate; public void…
1
vote
1 answer

stompjs xhr_streaming timeout

I'm using SockJS + stomp client in angular(1.5.x) to establish websocket with a spring (mvc) server. All works fine except this: if I kill the server, it takes up to two minutes for the stomp client to detect connection error on the browser. Is…
1
vote
0 answers

WebSocket callback function multiple invocations

I'm trying to create small web application which uses WebSocket protocol to exchange the data Here is my angular service define(function () { return function (module) { return module.service("socketService", function($q, $timeout) { …
gokareless
  • 1,165
  • 1
  • 10
  • 26
1
vote
1 answer

Stomp.js secure conneciton || Rabbitmq javascript client secure connection

Is there any way to connect to rabbitmq without rabbit server username and password on javascript. I don't wanna use this unsecure way var client = Stomp.overWS('ws://localhost:61614/stomp'); client.connect(login, passcode, connectCallback);
V.B.
  • 69
  • 1
  • 1
  • 6
0
votes
0 answers

Stomp js responsing twice

I have developed a chat application using spring boot web socket. In the front end I am using react. And I have installed these packages "sockjs-client": "^1.6.1", "stompjs": "^2.3.3", I send a message to one user and store that response in a Map.…
0
votes
0 answers

React Stompjs client Not connected

guys, I am new with websockets. I try recreate the common live chat example with NodeJs socket server and React StompJs client. On server-side I have receive the client connection. When refresh the client page server note disconnect and after that…
0
votes
1 answer

useEffect getting called multiple times in React without Strict mode

I want to run the connect function only once so that it initiates a stompjs client. But it is being called 4 times and I am getting the following message in the browser: VM1867 bundle.js:41684 WebSocket connection…
0
votes
0 answers

not able to intall or use in react native sockjs-client or stompjs

import SockJS from "sockjs-client"; import Stomp from "stompjs"; i am installing both the library for the websocket in react native for C/S communication but npm getting error import SockJS from "sockjs-client"; import Stomp from "stompjs"; i want…
0
votes
0 answers

How to receive heartbeat sent by StompJS in Spring Boot (without SockJS)

I'm sending heartbeat using StompJS from Angular using this.client.heartbeat.outgoing = 2000; from this documentation https://stomp-js.github.io/stomp-websocket/codo/extra/docs-src/Usage.md.html Angular Code this.client = new Client({ …
0
votes
0 answers

Web Socket Connection fails to be established in Angular App showing Console message "WebSocket Connection to endpoint failed" using stompjs

I am trying to implement Web Socket communication between my client and Server Applications. My backend service is a Spring Boot Application which sends a custom message object over the socket on a topic and my front end Angular based application…
Fuzail
  • 372
  • 5
  • 12
0
votes
1 answer

STOMP JS - Unsubscribe from topics

The Client class of STOMP has a method called deactivate(). Is it going to terminate all active WS connections, or do I need to manually unsubscribe from subscriptions made inside the onConnect callback? public setWebSocketConnections(loggedUser) { …
Diego Victor de Jesus
  • 2,575
  • 2
  • 19
  • 30
0
votes
0 answers

RTK query and streaming stomp updates issue with onCacheEntryAdded arg and backend pagination

I am getting messages via stompjs and I am having issues when trying to push that message to the top of the table. Once I change the page and go back the the new instance in cache gets created and it always pushes the messages to the latest created…