Package org.web3j.protocol.websocket
Interface WebSocketListener
-
public interface WebSocketListener
A listener used to notify about about new WebSocket messages.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onClose()
void
onError(java.lang.Exception e)
void
onMessage(java.lang.String message)
Called when a new WebSocket message is delivered.
-
-
-
Method Detail
-
onMessage
void onMessage(java.lang.String message) throws java.io.IOException
Called when a new WebSocket message is delivered.- Parameters:
message
- new WebSocket message- Throws:
java.io.IOException
- thrown if an observer failed to process the message
-
onError
void onError(java.lang.Exception e)
-
onClose
void onClose()
-
-