public class WebSockets extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
WebSockets.Listener |
static interface |
WebSockets.SocketListener
A simple interface for a listener on a web socket
|
| Modifier and Type | Field and Description |
|---|---|
static String |
SPDY_3_1 |
static String |
STREAM_PROTOCOL_HEADER |
static String |
V1_STREAM_PROTOCOL |
static String |
V2_STREAM_PROTOCOL |
static String |
V3_STREAM_PROTOCOL |
static String |
V4_STREAM_PROTOCOL |
| Constructor and Description |
|---|
WebSockets() |
| Modifier and Type | Method and Description |
|---|---|
static void |
stream(String path,
String method,
ApiClient client,
WebSockets.SocketListener listener)
Create a new WebSocket stream
|
public static final String V4_STREAM_PROTOCOL
public static final String V3_STREAM_PROTOCOL
public static final String V2_STREAM_PROTOCOL
public static final String V1_STREAM_PROTOCOL
public static final String STREAM_PROTOCOL_HEADER
public static final String SPDY_3_1
public static void stream(String path, String method, ApiClient client, WebSockets.SocketListener listener) throws ApiException, IOException
path - The HTTP Path to request from the APImethod - The HTTP method to use for the callclient - The ApiClient for communicating with the APIlistener - The socket listener to handle socket eventsApiExceptionIOExceptionCopyright © 2017. All rights reserved.