Daniele
Daniele

Reputation: 53

ionic 6 websocket client cordova plugin

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

Answers (2)

Everton Costa
Everton Costa

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. enter image description here

Upvotes: 0

tho-masn
tho-masn

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

Related Questions