public interface Transport
Transport. Default are websocket, streaming, server-side events and long-polling.
Use this interface only if you want to define another transport. New transport can be registered using the Options
class.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the underlying transport}
|
void |
connectedFuture(Future f)
Set the
Future, which will unlock the Socket.fire(java.lang.Object) method once the connection has been fully established. |
void |
error(java.lang.Throwable e)
Set a
Throwable |
boolean |
errorHandled()
Error handled by a
Function |
void |
future(Future f)
Set the
Future, which can be used to clone the connection. |
Request.TRANSPORT |
name()
The transport name
|
void |
onThrowable(java.lang.Throwable t)
Called when an unexpected exception ocurred.
|
Transport |
registerF(FunctionWrapper function)
Register a new
FunctionResolver |
Socket.STATUS |
status()
Return the current
Socket.STATUS |
Request.TRANSPORT name()
Transport registerF(FunctionWrapper function)
FunctionResolverfunction - FunctionResolvervoid onThrowable(java.lang.Throwable t)
t - a Throwablevoid close()
Socket.STATUS status()
Socket.STATUSboolean errorHandled()
Functionvoid error(java.lang.Throwable e)
Throwablee - Throwablevoid future(Future f)
Future, which can be used to clone the connection.f - Futurevoid connectedFuture(Future f)
Future, which will unlock the Socket.fire(java.lang.Object) method once the connection has been fully established.f - FutureCopyright © 2019. All Rights Reserved.