HTTP.WebSocket.sendMessage()
Signature
void sendMessage(Object eventOrSessionContext, Object message, boolean broadcast)
Domain
ACTION, CONDITION, BUI
Description
Sends message to current session or broadcasts to all sessions associated to the underlying websocket endpoint
Parameters
| Name | Type | Description |
eventOrSessionContext | Object | Accepts a SimpleEvent associated to WebSocket destination or the underlying websocket session context retrieved via getSessionContext api. |
message | String | The message to send. |
broadcast | boolean | Send to only the current session or all session associated to this endpoint |