Closed kosaa closed 5 years ago
The URL pattern 'http://localhost:8080/ws' suggests that your broker uses SockJS which is not same as WebSocket protocol. It is supported through SockJS library. Please see https://stomp-js.github.io/guide/stompjs/rx-stomp/ng2-stompjs/2018/09/10/using-stomp-with-sockjs.html
Let me know if it helps.
oohhh, thank you :) good to know
It is posibile to set pass URL without prefix 'ws'?
I copied rxStompConfig: InjectableRxStompConfig from examples and only set brokerURL to 'http://localhost:8080/ws'
in the console I got only one line:
and this subscribe method
is never connected
What can do wrong?