Learn how a client can use Messaging Service to subscribe to WebSocket events.
For a client, such as a browser component to subscribe to WebSocket event, it must use a Messaging Service API. For example, to obtain updated data from a server or to access events from the server, the data or events are sent to the browser through message schema payloads. The Messaging Service API is used to connect the browser to the server WebSockets.
For more information on the Messaging Service API, see subscribe(filter, messageHandler, id, contextName).