All Questions
Tagged with spring-websocket angular
37
questions
0
votes
0
answers
17
views
Angular can't access Springboot through Websockets
I'm having a porject, where Springboot is hosting the Angular frontend. The backend is receiving data from a external MQTT-Broker and is supposed to broadcast specific messages that it receives to an ...
0
votes
0
answers
33
views
404 error when trying to connect to the websocket (Angular + Spring boot)
In Angular i tried to connect to the websocket but an error message is returned :
websocket.service.ts:15 GET http://localhost:8081/socket.io/?EIO=4&transport=polling&t=OxuZ1WH 404 (Not Found)
...
0
votes
1
answer
92
views
Angular implementing websocket using sockJs and Stomp getting CORS Error
I used Stomp and SockJS for implementing WebSocket, and our backend is built with Spring Boot.
this is my client code:
and baseApi is something like this:
baseApi: 'https://api.test.com'
this is ...
-1
votes
1
answer
51
views
Spring Websocket CORS issue
I have a web application served by an Angular frontend and Spring Boot backend. They are deployed with a multi-stage Docker build on the same server. I had an issue of the websocket on Angular not ...
0
votes
0
answers
221
views
Cannot open connection between Angular client and Spring Boot server via websockets
I want to connect my Angular client to Spring Boot server via websockets(Sock.js and Stomp.js). But I receive this error in the browser:
My websocket config:
@Configuration
@...
0
votes
0
answers
52
views
GET error /info stompjs angular spring boot
i'm trying to do a simple chat application using websocket in spring boot and angular,
i'm using stompjs i get the error 'GET http://localhost:4200/hello/info?t=1692307507136 404 (Not Found)'
web ...
1
vote
3
answers
2k
views
Stomp not receiving CONNECTED frame (Angular + Spring)
I'm currently implementing a backend to frontend message mechanism using SockJS and Stomp on my Spring Boot 2 + Angular 14 app
I get a random behaviour, sometimes everythings works, but sometimes the ...
0
votes
0
answers
630
views
Can’t establish a connection to the server at ws://localhost:8080/websocket
please someone help me im fighting with this for 4 days straight, looked up through every tutorial but i can't get it to work. I want to establish connection between front-end Angular and the back-end ...
1
vote
0
answers
411
views
SpringBoot Angular Send Image over Websocket
I'm currently developing a springBoot/Angular chatApp using Websocket. I configured the websocket and it's controller, when I try to send text messages it works perfectly and the data get sent to all ...
0
votes
1
answer
523
views
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 ...
0
votes
1
answer
1k
views
Spring cloud gateway + service with websockets + angular result in CORS error
I have recently added websocket configuration to my spring application, which is behind a Spring cloud gateway. There is also an angular app which communicates with my service through the gateway. The ...
1
vote
0
answers
2k
views
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 ...
-3
votes
1
answer
326
views
Spring boot websocket notification flakiness
I am using Spring Boot WebSocket notification and Stomp client library in Angular to connect and subscribe to WebSocket. However, sometimes I get the notification on the UI screen and sometimes I do ...
0
votes
0
answers
438
views
Sending triggers to client using websockets in spring boot and angular
I want to initiate a trigger(maybe a notification) from backend(based in spring boot) to a particular user whose userId is xyz.
the one way i have found is:
initially i connect to a websocket end ...
0
votes
4
answers
2k
views
Property 'over' does not exist on type 'typeof @stomp/stompjs/index'
I am trying to create a chat app using spring websocket and using angular as the frontend. I am importing Stomp and SockJS:
import SockJS from "sockjs-client"
import * as Stomp from "@...