Closed Luiz-Otavio-Dorigon closed 1 week ago
Are you using SockJS?
Please share your configuration for the Stomp instance.
@kum-deepak Here are the libs I'm using and my connection
My dependencies:
"@stomp/stompjs": "^7.0.0"
"sockjs-client": "^1.6.1"
My dev dependencies
"@types/sockjs-client": "^1.5.4"
"@types/stompjs": "^2.3.9"
SockJS is not WebSocket (please see https://stomp-js.github.io/guide/stompjs/rx-stomp/using-stomp-with-sockjs.html).
SockJS is an emulation of WebSocket that tries multiple ways to establish a connection, one of which is to use a hidden IFrame.
Another remark: you do not need "@types/stompjs": "^2.3.9". It is a for a different library. The "@stomp/stompjs" includes the type definitions.
Thank you very much @kum-deepak , with your comments I was able to solve the problem.