Skip to main content
A live room connects everyone in an interaction. Zend checks membership, stamps each message with the sender, and fans it out. Nothing is stored, so use the interaction itself for anything you need to keep.
Each on call returns a function that removes the handler.

Rules

  • Only participants of the interaction can join.
  • from is the sender’s appUserId, set by Zend. A page can’t fake it.
  • Messages from your server arrive with from: "app". Results of random draws arrive with from: "zend" and data: { type: "random", result }.
  • Messages are up to 8 KB. Each person can send 20 a second, and each room carries up to 200 a second.
  • The room closes when the interaction reaches a terminal state. Handlers get closed with a reason.

From your server

Your server can join the same room over WebSocket with your app key, for example to referee a game.
Send:
Receive:
Your server can only join rooms for its own app’s interactions.