Publish payload on topic to every subscriber in scope. Requires the network capability when scope is "network". Raises for a payload that holds a table inside itself, nests tables more than 127 deep, or is larger than the memory the app has left.
Use the network topic of this name that every app setting shared uses, whatever its @scope and wherever its package came from. Network scope only: a local topic reaches every app on this workstation either way.
Called with each message received, as a table whose payload is the published value. A message published with local scope also holds sender, the publishing app (nil once it has ended), type, the topic, id, unique on this workstation, and timestamp, in seconds since the workstation started. One published with network scope holds topic instead.
Use the network topic of this name that every app setting shared uses, whatever its @scope and wherever its package came from. Network scope only: a local topic reaches every app on this workstation either way.
Join a presence group on a topic. Handles on the same topic in the apps of this app's @scope whose packages came from the same place (one registry or a folder) see each other's beacons; an app under another @scope, or a copy of this one that came another way, joins a different group under the same name, and with shared every app that also sets it joins one. A member disappears from peers() when its beacons stop for ttl seconds. Beacons carry a per-handle id, not an identity — they prove liveness only.
Seconds a member stays listed after its last beacon.
max
integer
64
Member cap, at most 1024; past it the least recently seen member is evicted.
shared
boolean
false
Join the group of this name that every app setting shared joins, whatever its @scope and wherever its package came from, instead of one kept within this app's @scope.
Use the network topic of this name that every app setting shared uses, whatever its @scope and wherever its package came from. Network scope only: a local topic reaches every app on this workstation either way.
Reaches the apps of this app's @scope whose packages came from the same place (one registry or a folder), on this workstation and on the others connected to the same deployment. An app under another @scope, or a copy of this one that came another way, reaches a different topic under the same name; with shared, every app that also sets it reaches one topic.