Skip to content

Instantly share code, notes, and snippets.

@ntoskrnl
Last active September 20, 2017 00:05
Show Gist options
  • Save ntoskrnl/47e4081aed26c85d698a17011d920222 to your computer and use it in GitHub Desktop.
Save ntoskrnl/47e4081aed26c85d698a17011d920222 to your computer and use it in GitHub Desktop.
RxWebSocket interface (example)
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