Connect with iOS and Android clients to SockJS Backend

后端 未结 4 2133
误落风尘
误落风尘 2021-01-31 16:50

I\'m developing WebSocket messaging backend using Spring WebSockets, which uses SockJS + STOMP protocol. The reason why not to use plain WebSockets is because I will need to lev

4条回答
  •  没有蜡笔的小新
    2021-01-31 17:06

    SockJS may be interesting because it provides non-ws transports. Just using WebSockets may not be possible in all situations.

    There is one cross-platform SockJs client of the OpenFL project:

    https://github.com/jeremyfa/openfl-sockjs

    Not tested how well it works, but at least for Android it's using JavaScript from inside WebView, so should be no different than JavaScript one. Again, it is not clear how tightly it is coupled with OpenFL, but the approach of using WebView and stock SockJS client could probably be re-used.

提交回复
热议问题