Last active
September 20, 2017 00:05
-
-
Save ntoskrnl/47e4081aed26c85d698a17011d920222 to your computer and use it in GitHub Desktop.
RxWebSocket interface (example)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface RxWebSocket<T> { | |
fun sendMessage(message: String): Single<Unit> | |
fun observeMessages(): Observable<T> | |
fun observeState(): Observable<RxWebSocketState> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment