public interface WebSocketListener
Modifier and Type | Method and Description |
---|---|
void |
onClose() |
void |
onError(java.lang.Exception e) |
void |
onMessage(java.lang.String message)
Called when a new WebSocket message is delivered.
|
void onMessage(java.lang.String message) throws java.io.IOException
message
- new WebSocket messagejava.io.IOException
- thrown if an observer failed to process the messagevoid onError(java.lang.Exception e)
void onClose()