Reputation: 286
I created an Node JS (using WebSocket) server for my client. I tested it with Javascript and it all works fine. But now I want to use that connection in my app. The connection uses the WS protocol (ws://) and the server sends messages while the connection is open.
My question is: how should I open an ws:// connection and read the incoming messages?
Thanks a lot
Upvotes: 0
Views: 1220
Reputation: 77
I am using the Autobahn Android lib and its working fine with the WS protocol but when i changed into WSS it not working for me (TCP connection is not getting established) one more thing the certificate is not self signed
Upvotes: 0
Reputation: 22011
You will need a WebSocket client library for Android/Java. You might have a look at AutobahnAndroid.
Disclosure: I am original author of Autobahn and work for Tavendo.
Upvotes: 1