new BridgeEvent()
Represents an event that occurs on the event bus bridge.
Please consult the documentation for a full explanation.
- Source:
Methods
getRawMessage() → {Object}
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, BridgeEvent#setRawMessage should be called with the
new message.
- Source:
Returns:
the raw JSON message for the event
- Type
- Object
rawMessage() → {Object}
Use BridgeEvent#getRawMessage instead, will be removed in 3.3
- Source:
Returns:
- Type
- Object
setRawMessage(message) → {BridgeEvent}
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.
Parameters:
Name | Type | Description |
---|---|---|
message |
Object | the raw message |
- Source:
Returns:
this reference, so it can be used fluently
- Type
- BridgeEvent
socket() → {SockJSSocket}
Get the SockJSSocket instance corresponding to the event
- Source:
Returns:
the SockJSSocket instance
- Type
- SockJSSocket
type() → {Object}
- Source:
Returns:
-
the type of the event
-
- Type
- Object