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 TypeMethodDescriptionvoid
binaryMessageReceived
(BinaryMessage binaryMessage) Invoked when a binary message is received from the application.default void
onClose()
Invoked when the WebSocket is closed.void
textMessageReceived
(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.
-