public interface Transport
Modifier and Type | Method and Description |
---|---|
ListenableFuture<WebSocketSession> |
connect(TransportRequest request,
WebSocketHandler webSocketHandler)
Connect the transport.
|
List<TransportType> |
getTransportTypes()
Return the SockJS transport types that this transport can be used for.
|
List<TransportType> getTransportTypes()
XhrTransport
could do both.ListenableFuture<WebSocketSession> connect(TransportRequest request, WebSocketHandler webSocketHandler)
request
- the transport request.webSocketHandler
- the application handler to delegate lifecycle events to.