WebSockets for Android and iOS Apps

Is there a project that provides libraries for communication via WebSocket for Android and iOS? I know jWebSocket, but it is pretty much dead and does not provide lib for iOS. I know Autobahn, but it also only supports Android. I also know SocketRocket, but this is only for iOS. Is there something that supports both, or two solutions that are 100% compatible with WebSocket?

Thanks!

+4
source share
1 answer

iOS uses ObjectiveC and Android Java, so there can be no library that provides the same unmodified user source code for both platforms for the platformโ€™s native language. You could have this (basically) using C. And of course, JavaScript.

In addition, with regard to the wired protocol, AutobahnAndroid and SocketRocket must be absolutely compatible, since both use AutobahnTestsuite to verify protocol compliance.

Above is for a clean WebSocket. If you want to use features of a higher level, that is, Autobahn, such as publication and subscription message templates and RPC provided by WAMP , we plan to have an iOS autorun version that adds those .. on top of SocketRocket. No need to invent a mature, reliable implementation of WebSocket on iOS.

Disclaimer: I am the creator of Autobahn / WAMP.

+11
source

Source: https://habr.com/ru/post/1432225/


All Articles