Friday 26 June 2020

RxWebSocket

RxWebSocket is a simple, lightweight, reactive wrapper around OkHttp WebSocket, inspired by RxAndroidBle.

Instead of implementing a WebSocketListener like you would normally do with WebSocket, you can subscribe to it and when it is connected, subscribe to its messages. When you're done with the connection, you can simply unsubscribe and it takes care of closing the connection for you.



from The Android Arsenal

No comments:

Post a Comment