public class WebSocketTransport extends Object implements Transport, org.springframework.context.Lifecycle
Transport that uses a
WebSocketClient.| Constructor and Description |
|---|
WebSocketTransport(WebSocketClient webSocketClient) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.util.concurrent.ListenableFuture<WebSocketSession> |
connect(TransportRequest request,
WebSocketHandler handler)
Connect the transport.
|
List<TransportType> |
getTransportTypes()
Return the SockJS transport types that this transport can be used for.
|
WebSocketClient |
getWebSocketClient()
Return the configured
WebSocketClient. |
boolean |
isRunning() |
void |
start() |
void |
stop() |
String |
toString() |
public WebSocketTransport(WebSocketClient webSocketClient)
public WebSocketClient getWebSocketClient()
WebSocketClient.public List<TransportType> getTransportTypes()
TransportXhrTransport could do both.getTransportTypes in interface Transportpublic org.springframework.util.concurrent.ListenableFuture<WebSocketSession> connect(TransportRequest request, WebSocketHandler handler)
Transportpublic void start()
start in interface org.springframework.context.Lifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic boolean isRunning()
isRunning in interface org.springframework.context.Lifecycle