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

NameTypeDescription
eventOrSessionContextObjectAccepts a SimpleEvent associated to WebSocket destination or the underlying websocket session context retrieved via getSessionContext api.
messageStringThe message to send.
broadcastbooleanSend to only the current session or all session associated to this endpoint

Returns

TypeDescription
void