push
This block is part of the realtime group and was last modified in core v15.0.2.
push v15.0.2 Pushes a frame to every socket in the rooms, on every node.
- flow
- rooms
array - room
value - method
valuerequired - payload
object - resume
condition - exclude self
condition - exclude users
array - within
value - require
objecta role check per recipient: {roles, root, path, permission}
- flow
- success
condition - seq
number - error
value
Commits one push in one Redis call: a seq shared by every recipient, a log entry in each room when the entity's resume policy (realtime_resume_policy) logs the method, and a publish per room. Every node with sockets in a room delivers the same encoded frame. exclude_self skips the socket of the run (and its session on a resume); exclude_users skips every socket of those users; within delivers only to sockets also in that room; require is a role check per recipient, answered by the role resolver: {roles: model name, root, path (ids from the root down), permission}, e.g. {roles: "facilities", path: [building, floor], permission: "see_alarms"} delivers an alarm only to who may see it on that floor; a filter with any other key fails the push, and a node without the resolver refuses it. resume=false keeps the push out of the logs; it can only narrow the policy.
Version history
Introduced in v15.0.2.
v15.0.2: block added in this release.
Back to
realtime Return to the main group to view all sub-groups Back to realtime Return to the group to view all blocks within this group