public class LongPollingTransport extends HttpClientTransport
BUFFER_SIZE, mAbortFuture, mHttpConnection, mStartedAbort| Constructor and Description |
|---|
LongPollingTransport(Logger logger,
HttpConnection httpConnection)
Initializes the transport with a logger
|
LongPollingTransport(Logger logger,
String clientCertificatePath,
char[] clientCertificatePassword,
String clientCertificateAlias,
boolean ignoreSsl)
Initializes the transport
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Transport name
|
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, send, throwOnInvalidStatusCodepublic LongPollingTransport(Logger logger, String clientCertificatePath, char[] clientCertificatePassword, String clientCertificateAlias, boolean ignoreSsl)
logger - logger to log actionsclientCertificatePath - client certificate pathclientCertificatePassword - client certificate passwordclientCertificateAlias - client certificate aliasignoreSsl - ignore SSL certificate verificationpublic LongPollingTransport(Logger logger, HttpConnection httpConnection)
logger - Logger to log actionshttpConnection - HttpConnection for the transportpublic 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 dataCopyright © 2019. All rights reserved.