Skip to main content
Markdown

Ask the pages of a user

POST 

/wordplus/realtime/users/:id/ask

Sends an event to the open pages of a user and waits for their replies. A page answers the events it chose with the browser rt.answer( event, handler ), which returns the reply. The answer comes with the first reply, or with all once timeout is over, with every reply by then. No page answering is no reply.

Seal data with the key of the user to keep it from WordPlus Cloud (sealing): the pages seal their replies with the same key. The packages do both by default.

In the packages: realtime.user( id ).ask( event, data, { timeout, all } ).

Request​

Responses​

The replies, in the order they came: one at most without all.