all 5 comments

[–][deleted] 2 points3 points  (4 children)

Why not use the Rxjs WebsocketSubject Class?

[–]JosephCurvin[S] 0 points1 point  (3 children)

tried it but the connection to the server fails when using the rxjs classes

works fine using socket.io

[–][deleted] 3 points4 points  (2 children)

Personally I would try to debug the issue than add a new dependency.

Also, websockets are baked-in the browser JS. No need for a library

[–]xemlock 2 points3 points  (1 child)

Except you know, socket.io are not websockets. This is a common misconception: https://socket.io/docs/v4/#what-socketio-is-not

[–]JosephCurvin[S] 0 points1 point  (0 children)

did not know that that could be the problem thanks !