public interface ServerWebSocket extends Wrapper
| Modifier and Type | Method and Description |
|---|---|
ServerWebSocket |
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 |
messageAction(Action<Data> action)
Attaches an action for the message event.
|
ServerWebSocket |
send(ByteBuffer byteBuffer)
Sends bytes message through the connection
|
ServerWebSocket |
send(String data)
Sends a text message through the connection.
|
String |
uri()
The URI used to connect.
|
String uri()
ServerWebSocket close()
ServerWebSocket send(String data)
ServerWebSocket send(ByteBuffer byteBuffer)
byteBuffer - ServerWebSocket messageAction(Action<Data> action)
String for text messages. If the message is quite big, it may
drain memory quickly.ServerWebSocket errorAction(Action<Throwable> action)
ServerWebSocket closeAction(Action<Void> action)
Copyright 2014, The Vibe Project