I am trying to do a very simple websocket solution where, from a dotnet application, I send an integer to the socket and then from my rxjs I want to get that value.
Sending is very easy and I don't get any errors. So I guess the values are being sent (I use the Webpubsub in azure where I've created a client url from there):
But, receiving is not working at all. Nothing is happening. This copied directly from RxJS website:
The code inside that onInit is triggering first time the page loads but then nothing more.
In the browser, it looks like the hub is connected (in devtools I see that the hub is in pending mode which should be correct):



WebsocketService) to manage the WebSocket connection. This service will handle connecting, sending, and receiving messages.websocket.service.ts :
WebsocketServiceinto the Angular components where you want to use WebSocket communication.messages$observable to receive WebSocket messages. Handle incoming messages as needed.app.component.ts :
ngOnDestroy).Connection status :
Receive messages :