Package | Description |
---|---|
io.cettia | |
io.cettia.transport | |
io.cettia.transport.http | |
io.cettia.transport.websocket |
Modifier and Type | Method and Description |
---|---|
void |
DefaultServer.on(ServerTransport transport) |
Modifier and Type | Class and Description |
---|---|
class |
BaseServerTransport
Base class for
ServerTransport . |
Modifier and Type | Method and Description |
---|---|
ServerTransport |
ServerTransport.onbinary(Action<ByteBuffer> action)
Attaches an action for the binary message.
|
ServerTransport |
BaseServerTransport.onbinary(Action<ByteBuffer> action) |
ServerTransport |
ServerTransport.onclose(Action<Void> action)
Attaches an action for the close event.
|
ServerTransport |
BaseServerTransport.onclose(Action<Void> action) |
ServerTransport |
ServerTransport.onerror(Action<Throwable> action)
Executed if there was any error on the connection.
|
ServerTransport |
BaseServerTransport.onerror(Action<Throwable> action) |
ServerTransport |
ServerTransport.ontext(Action<String> action)
Attaches an action for the text message.
|
ServerTransport |
BaseServerTransport.ontext(Action<String> action) |
ServerTransport |
ServerTransport.send(ByteBuffer data)
Sends a binary message through the connection.
|
ServerTransport |
BaseServerTransport.send(ByteBuffer data) |
ServerTransport |
ServerTransport.send(String data)
Sends a text message through the connection.
|
Modifier and Type | Method and Description |
---|---|
TransportServer<T> |
TransportServer.ontransport(Action<ServerTransport> action)
Registers an action to be called when the transport has been opened.
|
Modifier and Type | Method and Description |
---|---|
HttpTransportServer |
HttpTransportServer.ontransport(Action<ServerTransport> action) |
Modifier and Type | Method and Description |
---|---|
WebSocketTransportServer |
WebSocketTransportServer.ontransport(Action<ServerTransport> action) |
Copyright 2015, The Cettia Project