Interface ExtensionWebSocketMessageHandler
public interface ExtensionWebSocketMessageHandler
This interface allows an extension to be notified when messages are received or the WebSocket has been closed.
-
Method Summary
Modifier and TypeMethodDescriptionvoidbinaryMessageReceived(BinaryMessage binaryMessage) Invoked when a binary message is received from the application.default voidonClose()Invoked when the WebSocket is closed.voidtextMessageReceived(TextMessage textMessage) Invoked when a text message is received from the application.
-
Method Details
-
textMessageReceived
Invoked when a text message is received from the application.- Parameters:
textMessage- text WebSocket message.
-
binaryMessageReceived
Invoked when a binary message is received from the application.- Parameters:
binaryMessage- binary WebSocket message.
-
onClose
default void onClose()Invoked when the WebSocket is closed.
-