Interface BaseBridgeEvent
- All Superinterfaces:
Completable<Boolean>, Promise<Boolean>
- All Known Subinterfaces:
BridgeEvent, BridgeEvent, BridgeEvent
-
Method Summary
Modifier and TypeMethodDescriptionGet the raw JSON message for the event.setRawMessage(JsonObject message) Override the raw JSON message for the event.type()
-
Method Details
-
type
BridgeEventType type()- Returns:
- the type of the event
-
getRawMessage
JsonObject getRawMessage()Get the raw JSON message for the event. This will be null for SOCKET_CREATED or SOCKET_CLOSED events as there is no message involved. If the returned message is modified,setRawMessage(JsonObject)should be called with the new message.- Returns:
- the raw JSON message for the event
-
setRawMessage
Override the raw JSON message for the event. It is ideally using it when publish back message from server to client in RECEIVE event- Parameters:
message- the raw message- Returns:
- this reference, so it can be used fluently
-