Skip to main content
Markdown

Send an event

POST 

/wordplus/realtime/emit

Sends one event to rooms, to users (every tab and device they have open), or both. Everyone in a room gets it, and a room whose history you give keeps it for pages that reconnect.

The data is any JSON, up to 1 MB. Seal it first to keep it from WordPlus Cloud (sealing): the packages seal the data of every room and user by default.

In the packages: realtime.to( rooms ).toUser( users ).emit( event, data ).

Request​

Responses​

Sent. The ids of the events kept, by room.