public class WebsocketTransport extends HttpClientTransport
BUFFER_SIZE, mAbortFuture, mHttpConnection, mStartedAbort| Constructor and Description |
|---|
WebsocketTransport(Logger logger,
HttpConnection httpConnection) |
WebsocketTransport(Logger logger,
String clientCertificatePath,
char[] clientCertificatePassword,
String clientCertificateAlias,
boolean ignoreSsl) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Transport name
|
SignalRFuture<Void> |
send(ConnectionBase connection,
String data,
DataResultCallback callback)
Sends data using the transport
|
SignalRFuture<Void> |
start(ConnectionBase connection,
ConnectionType connectionType,
DataResultCallback callback)
Starts the transport
|
boolean |
supportKeepAlive()
True if the transport supports keepalive messages
|
abort, log, log, negotiate, throwOnInvalidStatusCodepublic WebsocketTransport(Logger logger, String clientCertificatePath, char[] clientCertificatePassword, String clientCertificateAlias, boolean ignoreSsl)
public WebsocketTransport(Logger logger, HttpConnection httpConnection)
public String getName()
ClientTransportpublic boolean supportKeepAlive()
ClientTransportpublic SignalRFuture<Void> start(ConnectionBase connection, ConnectionType connectionType, DataResultCallback callback)
ClientTransportconnection - Connection information to start the transportconnectionType - Connection typecallback - Callback to invoke when there is new datapublic SignalRFuture<Void> send(ConnectionBase connection, String data, DataResultCallback callback)
ClientTransportsend in interface ClientTransportsend in class HttpClientTransportconnection - Connection information to send datadata - data to sendcallback - Callback to invoke when data is returnedCopyright © 2019. All rights reserved.