Skip to main content

All Questions

0 votes
0 answers
21 views

When i reload or logout from my app the disconnect function in the backend runs twice and i am getting two session different ids when logging out

I am developing an application where there is a chat feature and I am facing a problem. When I logout from the app, I see two disconnects from two different session ids for the same user. The output ...
Mehdi Ziadi's user avatar
1 vote
1 answer
1k views

WebSocket connection failing using STOMP.js

I'm using Spring Boot WebSockets, STOMP.js, and JQuery to develop a short training project. Sadly I seem to have missed some crucial point while following guides and the official documentation because ...
Tired8296's user avatar
0 votes
0 answers
264 views

StompJs publish not sending to springBoot Server

Ive created a stompclient with js that can send messages to a spring boot server written in kotlin. the problem is, the publish method of the stompClient supposedly sends the payload but the server ...
soudiogo's user avatar
0 votes
0 answers
66 views

How to create sound from the microphone in JavaScript and play it in real-time using Java?

I don't know how to send real-time audio to Java. On javascript: navigator.mediaDevices.getUserMedia({ audio: true }).then((mediaStream) => { const audioContext = new(window....
Cảnh Nguyễn's user avatar
0 votes
1 answer
134 views

Client side: Subscribing to multiple websocket pushing from different server

I am new to SockJS, Stomp and Spring websocket. I have spring websocket configuration like below: @Override public void registerStompEndpoints(StompEndpointRegistry registry) { registry....
Om Sao's user avatar
  • 7,477
0 votes
0 answers
41 views

Having trouble with the .send() method of WebSocket in Spring Boot Project

I'm trying to make a live poker application using Java Spring Boot Framework. I'm using WebSocket for full-duplex comms between players at the table. Right now I'm trying to make a player-icon show up ...
Aldo's user avatar
  • 1
0 votes
0 answers
39 views

How to pass pathname into web socket and use @DestinationVariable in Spring Boot

I'm a fresher level java programmer. I try to make a application and want to use Web Socket, Stomp JS and my config like: In java: Config: `@Configuration @EnableWebSocketMessageBroker public class ...
teacher trang's user avatar
0 votes
1 answer
100 views

Spring Boot Websockets: Is there a way to make Other Users reload page

When something from a client is sent through the websocket I want the other clients to refresh the page but not the sender. window.addEventListener("load", (e) => { const socket = new ...
DomePB's user avatar
  • 1
1 vote
0 answers
827 views

SockJS can't connect to Spring Boot websocket

I tried many different solutions and posts since I'm new to websockets (for example: Spring Boot + Sockjs client offline connecting issues or Spring boot Websocket without SockJS). My current setup ...
Kyatt's user avatar
  • 353
0 votes
0 answers
595 views

When websocket topic is created?

I can't figure out when and where exactly the "greetings" room is created in the code. This is my js code function connect() { var socket = new SockJS('/gs-guide-websocket'); ...
shaxa 2000's user avatar
1 vote
0 answers
4k views

Spring boot : WebSocket connection to 'wss://localhost:9595/chat' failed

I have created application with spring boot and it has spring security & added code of websocket in spring boot application But I am not able to establish connection with websocket. I got an ...
PramodA's user avatar
  • 150
0 votes
0 answers
166 views

Springboot websocket with Kotlin, JS client not working

I am following a simple tutorial, but I am doing it in kotlin, I don't think that matters that much, I tried different configurations but nothing is working for me, I am new to JS here is what the ...
Ipkiss's user avatar
  • 771
1 vote
0 answers
86 views

Websocket - Why can't I send messages to a specific user?

Question: Why am I being able to send messages to all users but not to a specific user? Am I missing something obvious here? Problem: My POC uses the following resources: The official Spring Boot ...
Lau's user avatar
  • 179
2 votes
0 answers
427 views

Trouble adding and receiving tracks in WebRTC

I am building a p2p group video chat based on this example: https://github.com/eugenp/tutorials/tree/master/webrtc I've altered the code to give each user an ID and created a dictionary in which I ...
Schpiro's user avatar
  • 21
0 votes
0 answers
300 views

Using Server Side (Spring WebSocket) without client code SockJS

I'm using Spring Boot MVC and Security. And now I want to use Spring WebSocket, for example, to create a chat. But could I write JS client code to server side? When a user logs in to the site he has ...
Pawsy Foxicute's user avatar

15 30 50 per page