public interface IWebSocketProcessor
Modifier and Type | Method and Description |
---|---|
void |
onClose(int closeCode,
String message)
A notification after the close of the web socket connection.
|
void |
onError(Throwable t)
A notification after a communication error.
|
void |
onMessage(byte[] data,
int offset,
int length)
Called when a binary message arrives from the client
|
void |
onMessage(String message)
Called when a text message arrives from the client
|
void |
onOpen(Object containerConnection)
A client successfully has made a web socket connection.
|
void onMessage(String message)
message
- the text message from the clientvoid onMessage(byte[] data, int offset, int length)
data
- the binary message from the clientoffset
- the offset to read fromlength
- how much data to readvoid onOpen(Object containerConnection)
containerConnection
- the web socket connection to use to communicate with the clientvoid onClose(int closeCode, String message)
closeCode
- message
- void onError(Throwable t)
t
- The throwable for the communication problemCopyright © 2006–2022 Apache Software Foundation. All rights reserved.