Publish to all sockets subscribed to topic (e.g. 'global'). The frame is wrapped in the driver envelope: {event: topic, payload: data}. Subject to the driver's canPublish authorization hook.
Subscribe this socket to a named room.
Unsubscribe this socket from a named room.
Send a message back to this socket only.
What an
app.on()handler receives;payloadis the emitted value.