Package org.web3j.protocol.websocket
Interface WebSocketListener
public interface WebSocketListener
A listener used to notify about about new WebSocket messages.
-
Method Summary
-
Method Details
-
onMessage
Called when a new WebSocket message is delivered.- Parameters:
message
- new WebSocket message- Throws:
IOException
- thrown if an observer failed to process the message
-
onError
-
onClose
void onClose()
-