public interface ClientTransport
| Modifier and Type | Method and Description |
|---|---|
SignalRFuture<Void> |
abort(ConnectionBase connection)
Aborts the transport
|
String |
getName()
Transport name
|
SignalRFuture<NegotiationResponse> |
negotiate(ConnectionBase connection)
Begins the negotiation with the server
|
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
|
String getName()
boolean supportKeepAlive()
SignalRFuture<NegotiationResponse> negotiate(ConnectionBase connection)
connection - Connection information to do the negotiationSignalRFuture<Void> start(ConnectionBase connection, ConnectionType connectionType, DataResultCallback callback)
connection - Connection information to start the transportconnectionType - Connection typecallback - Callback to invoke when there is new dataSignalRFuture<Void> send(ConnectionBase connection, String data, DataResultCallback callback)
connection - Connection information to send datadata - data to sendcallback - Callback to invoke when data is returnedSignalRFuture<Void> abort(ConnectionBase connection)
connection - Connection information to abortCopyright © 2019. All rights reserved.