public interface ServerTransport
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()
Closes the connection. 
 | 
ServerTransport | 
onbinary(Action<ByteBuffer> action)
Attaches an action for the binary message. 
 | 
ServerTransport | 
onclose(Action<Void> action)
Attaches an action for the close event. 
 | 
ServerTransport | 
onerror(Action<Throwable> action)
Executed if there was any error on the connection. 
 | 
ServerTransport | 
ontext(Action<String> action)
Attaches an action for the text message. 
 | 
ServerTransport | 
send(ByteBuffer data)
Sends a binary message through the connection. 
 | 
ServerTransport | 
send(String data)
Sends a text message through the connection. 
 | 
<T> T | 
unwrap(Class<T> clazz)
Returns the underlying component. 
 | 
String | 
uri()
A URI used to connect. 
 | 
ServerTransport onerror(Action<Throwable> action)
ServerTransport ontext(Action<String> action)
ServerTransport onbinary(Action<ByteBuffer> action)
ServerTransport send(String data)
ServerTransport send(ByteBuffer data)
ServerTransport onclose(Action<Void> action)
void close()
<T> T unwrap(Class<T> clazz)
Copyright 2015, The Cettia Project