|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IWebSocketConnection
Common interface for native WebSocket connections
| Method Summary | |
|---|---|
void |
close(int code,
String reason)
Closes the underlying web socket connection |
boolean |
isOpen()
|
IWebSocketConnection |
sendMessage(byte[] message,
int offset,
int length)
Sends a binary message to the client. |
void |
sendMessage(IWebSocketPushMessage message)
Broadcasts a push message to the wicket page (and it's components) associated with this connection. |
IWebSocketConnection |
sendMessage(String message)
Sends a text message to the client. |
| Method Detail |
|---|
boolean isOpen()
true when the underlying native web socket
connection is still open.
void close(int code,
String reason)
code - the status codereason - the reason to close the connection
IWebSocketConnection sendMessage(String message)
throws IOException
message - the text message
this object, for chaining methods
IOException - when an IO error occurs during the write to the client
IWebSocketConnection sendMessage(byte[] message,
int offset,
int length)
throws IOException
message - the binary messageoffset - the offset to read fromlength - how much data to read
this object, for chaining methods
IOException - when an IO error occurs during the write to the clientvoid sendMessage(IWebSocketPushMessage message)
message - the push message to send
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||