public class RxWebSockets
extends java.lang.Object
| Constructor and Description |
|---|
RxWebSockets(com.appunite.websocket.NewWebSocket newWebSocket,
java.net.URI uri,
java.util.List<java.lang.String> subProtocols,
java.util.List<org.apache.http.Header> headers)
Create instance of
RxWebSockets |
| Modifier and Type | Method and Description |
|---|---|
rx.Observable<RxEvent> |
webSocketObservable()
Returns observable that connected to a websocket and returns
RxObjectEvent's |
public RxWebSockets(@Nonnull
com.appunite.websocket.NewWebSocket newWebSocket,
@Nonnull
java.net.URI uri,
@Nonnull
java.util.List<java.lang.String> subProtocols,
@Nonnull
java.util.List<org.apache.http.Header> headers)
RxWebSocketsnewWebSocket - NewWebSocket instanceuri - uri for websocket (eg. "wss://some.server/endpoint")subProtocols - application-level protocols layered over the WebSocket Protocolheaders - headers sent to server@Nonnull public rx.Observable<RxEvent> webSocketObservable()
RxObjectEvent's