All Questions
12
questions
2
votes
0
answers
27
views
Authenticating websockets - adding credentials to Stomp.js client
According to spring doc authentication for websocket falls back to authentication of HTTP request ( handshake ) and when spring-security is set up, no more configuration is needed.
I have set up the ...
2
votes
0
answers
41
views
WebSocket is not receiving messages
I have simple STOMP websockets:
@Configuration
@EnableWebSocketMessageBroker
public class WebSocketConfig implements WebSocketMessageBrokerConfigurer {
@Override
public void ...
0
votes
0
answers
33
views
Java and React WebSocket - Error Connection
Código do WebSocket no Java:
package com.fatec.dsm.tharseo.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.messaging.simp.config.MessageBrokerRegistry;...
0
votes
0
answers
36
views
Spring WebSocket and React SockJS Connection Issues
I'm working on creating a user-to-user chat application using Spring and React, and I want to prevent anonymous users from connecting to the WebSocket. Additionally, I'm using OAuth2 Resource Server ...
0
votes
0
answers
71
views
Cannot read properties of null (reading 'addEventListener') Getting error while connecting to sockjs
I'm getting the above error when trying to run the application. I'm using spring boot on the backend and websocket. And using js and sockjs library.
This is the error I'm getting:
ChatRoom.js:45 ...
0
votes
1
answer
2k
views
Websocket connection with spring boot and react.js
I am trying to connect my react.js socks client to my spring boot backend web socket but I can not connect them it gives me some errors on chrome console like that :
chrome-console-error
I do not have ...
2
votes
1
answer
271
views
Multipeer connection onicecandidate event won't fire
I'm having problems with the logic to build behind the webRTC multi peer connections handling.
Basically I'm trying to make a Room full of people in a videoconference call.
I'm using the basic ...
5
votes
0
answers
19k
views
Some cookies are misusing the recommended “sameSite“ attribute
I'm building a react application that uses atmosphere library to listen to a SpringBoot websocket, when the client tries to connect to the server, it throws an error in the console saying Some cookies ...
0
votes
1
answer
48
views
SSL rules when client and server are hosted separately
I'm hosting a web game on github pages. It's a react app that connects to a websocket server (via wss) running off of a linux box in my living room. I've generated a self-signed certificate for the ...
4
votes
1
answer
1k
views
WebSocket between react native and java
I have an app in react native and my server is in java (java spring).
Im trying to have real time data with webSocket but can connect between them. I was working with react-native-websocket for react ...
3
votes
1
answer
3k
views
WebSocket with Spring Boot and JavaScript
This is my simple attempt to create a WebSocket channel between a JavaScript client and a Java server.
// java websocket server configuration with spring boot
// server port: 8080 set in the "...
8
votes
2
answers
28k
views
Error during WebSocket handshake: Unexpected response code: 302
While connecting to REACT based WebSocket client to Java Jetty based Web Socket server, I am getting the error below -
WebSocket connection to 'ws://localhost:2319/ws' failed: Error during WebSocket ...