public class WebSocketTransportServer extends Object implements TransportServer<ServerWebSocket>
TransportServer.
It processes transport whose URI whose protocol is either ws or
wss like ws://localhost:8080/vibe. Because WebSocket protocol
itself meets transport's requirements, produced transport is actually a
thread-safe version of ServerWebSocket.
| Constructor and Description |
|---|
WebSocketTransportServer() |
| Modifier and Type | Method and Description |
|---|---|
void |
on(ServerWebSocket ws) |
WebSocketTransportServer |
transportAction(Action<ServerTransport> action)
Registers an action to be called when the transport has been opened.
|
public void on(ServerWebSocket ws)
on in interface Action<ServerWebSocket>public WebSocketTransportServer transportAction(Action<ServerTransport> action)
TransportServertransportAction in interface TransportServer<ServerWebSocket>Copyright 2014, The Vibe Project