Client side RxJS WebSocketSubject with WsAdapter example not working
See original GitHub issueI’m submitting a…
[ ] Regression
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
I’m trying to extend the gateways ws example (working), but using rxjs WebSocketSubject on the client side.
Expected behavior
I’d expect it to work similar to the WebSocket client that is native to the browser (like in that ws gateway example)
Minimal reproduction of the problem with instructions
https://github.com/CoreyCole/nest/tree/master/sample/20-gateways-ws-client-rxjs
What is the motivation / use case for changing the behavior?
RxJS all the things?
Environment
Nest version: 5.0.0
For Tooling issues:
- Node version: v8.11.1
- Platform: Mac
Others:
On the client, I’m using rxjs cdn as instructed here
Issue Analytics
- State:
- Created 5 years ago
- Comments:8
Top Results From Across the Web
Using RxJS 6.x WebSocketSubject client - Stack Overflow
I got it working with rxjs@6.1.0 . As I suspected, I was just using the version 6 syntax wrong. See working example:
Read more >webSocket - RxJS
webSocket is a factory function that produces a WebSocketSubject , which can be used to make WebSocket connection with an arbitrary endpoint. webSocket...
Read more >Angular 9 RxJs Websockets / WebSocketSubject not recieving ...
Coding example for the question Angular 9 RxJs Websockets / WebSocketSubject not recieving message from server-rx.js.
Read more >Auto WebSocket Reconnection with RxJS (with Example)
In this RxJS tutorial article, we will focus on restoring the websocket connection when using RxJS library.
Read more >Real-Time in Angular: A journey into Websocket and RxJS
I'll be using Angular 8 for the client, Node.js for the server which uses the ... As WebSocketSubject is nothing but a regular...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Got it working with 6.1.0 on the client! I was just using it wrong. See working: https://github.com/CoreyCole/nest/blob/master/sample/20-gateways-ws-client-rxjs/client/index.html
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.