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/cettia
. Because WebSocket protocol
itself meets transport's requirements, a 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 |
ontransport(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 ontransport(Action<ServerTransport> action)
TransportServer
ontransport
in interface TransportServer<ServerWebSocket>
Copyright 2015, The Cettia Project