Reputation: 53
I'm using ionic 6 (with Angular). Is there a websocket client plugin? I want to communicate with a websocket server written in c# but I can't find any plugins to use ionic as websocket client.
Upvotes: 0
Views: 4100
Reputation: 650
I suggest you to use the same websocket pattern on backend as the frontend. The socket.io doesn't communicate with others websockets
, so it means you need to check first which WS
actually you are using on backend to keep using the same on the mobile App.
Upvotes: 0
Reputation: 1174
You don't need a dedicated ionic plugin if you just want to subscribe to a websocket. Existing angular websocket libraries should work.
I personally prefer using socket-io, which works perfectly fine: https://socket.io/
Upvotes: 2