public interface ServerWebSocket
| Modifier and Type | Method and Description |
|---|---|
ServerWebSocket |
binaryAction(Action<ByteBuffer> action)
Attaches an action for the binary frame.
|
void |
close()
Closes the connection.
|
ServerWebSocket |
closeAction(Action<Void> action)
Attaches an action for the close event.
|
ServerWebSocket |
errorAction(Action<Throwable> action)
Attaches an action to handle error from various things.
|
ServerWebSocket |
send(ByteBuffer byteBuffer)
Sends a binary frame through the connection.
|
ServerWebSocket |
send(String data)
Sends a text frame through the connection.
|
ServerWebSocket |
textAction(Action<String> action)
Attaches an action for the text frame.
|
<T> T |
unwrap(Class<T> clazz)
Returns the provider-specific component.
|
String |
uri()
The URI used to connect.
|
String uri()
void close()
ServerWebSocket send(String data)
ServerWebSocket send(ByteBuffer byteBuffer)
ServerWebSocket textAction(Action<String> action)
ServerWebSocket binaryAction(Action<ByteBuffer> action)
ServerWebSocket closeAction(Action<Void> action)
ServerWebSocket errorAction(Action<Throwable> action)
<T> T unwrap(Class<T> clazz)
Copyright 2014, The Vibe Project