com.vaadin.base.devserver.
Interface DevToolsMessageHandler
Handles dev tools messages from the client.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleConnect
(DevToolsInterface devToolsInterface) Called when a browser connects.
default void
handleDisconnect
(DevToolsInterface devToolsInterface) Called when the browser connection disconnects.
default boolean
handleMessage
(String command, com.fasterxml.jackson.databind.JsonNode data, DevToolsInterface devToolsInterface) Called when a message from the browser arrives.
boolean
handleMessage
(String command, elemental.json.JsonObject data, DevToolsInterface devToolsInterface) Deprecated.
-
Method Details
-
handleConnect
Called when a browser connects.
This happens on each refresh but also when the application is opened in a new browser tab or window.
Parameters:
devToolsInterface
- for interaction with the development tools, e.g. sending a message -
handleMessage
@Deprecated boolean handleMessage(String command, elemental.json.JsonObject data, DevToolsInterface devToolsInterface) Deprecated.Called when a message from the browser arrives.
Parameters:
command
- the command receiveddata
- the data receiveddevToolsInterface
- for interaction with the development tools, e.g. sending a messageReturns:
true
if the message was handled and should not be passed on to further handlers -
handleMessage
default boolean handleMessage(String command, com.fasterxml.jackson.databind.JsonNode data, DevToolsInterface devToolsInterface) Called when a message from the browser arrives.
Parameters:
command
- the command receiveddata
- the data receiveddevToolsInterface
- for interaction with the development tools, e.g. sending a messageReturns:
true
if the message was handled and should not be passed on to further handlers -
handleDisconnect
Called when the browser connection disconnects.
Parameters:
devToolsInterface
- for interaction with the development tools, e.g. sending a message
-