public interface TransportServer<T> extends Action<T>
TransportServer
consumes resource like ServerHttpExchange
or
ServerWebSocket
and produces ServerTransport
following the
corresponding Cettia transport protocol.
Instances may be accessed by multiple threads.
Modifier and Type | Method and Description |
---|---|
TransportServer<T> |
ontransport(Action<ServerTransport> action)
Registers an action to be called when the transport has been opened.
|
TransportServer<T> ontransport(Action<ServerTransport> action)
Copyright 2015, The Cettia Project