Machine membership, scoped sharing and durable Council delivery through the relay.
Machine membership, scoped sharing and durable Council delivery through the relay.
(create! db {:keys [relay_url name] :as body})Create a room on a connected relay where this machine can create rooms.
Create a room on a connected relay where this machine can create rooms.
(default-machine-name)This computer's host name without its domain, or Vis when the host has no usable name.
This computer's host name without its domain, or Vis when the host has no usable name.
(delete-machine! db {:keys [relay_url] :as body})Delete this machine from one relay, then forget its credential there. A relay failure keeps the credential. The machine stays on the other relays.
Delete this machine from one relay, then forget its credential there. A relay failure keeps the credential. The machine stays on the other relays.
(join! db {:keys [invite_url] :as body})Join the room of an invitation with the saved machine name. One machine can be in many rooms on many relays.
Join the room of an invitation with the saved machine name. One machine can be in many rooms on many relays.
(known-rooms)The saved rooms of all connected relays. Room IDs are random, so the first relay wins a duplicate.
The saved rooms of all connected relays. Room IDs are random, so the first relay wins a duplicate.
(machine-name db)The name that rooms show for this machine on each relay. The first use saves the host name.
The name that rooms show for this machine on each relay. The first use saves the host name.
The setting id of the name that rooms show for this machine.
The setting id of the name that rooms show for this machine.
The longest machine name that the relay accepts.
The longest machine name that the relay accepts.
(manage! db operation room-id id body)Apply a declared membership operation through the authenticated machine.
Apply a declared membership operation through the authenticated machine.
(operation! db sid room-id operation opts)Recheck session policy at the transport boundary, including reads and receipts.
Recheck session policy at the transport boundary, including reads and receipts.
(poll! db)Claim each idle wake before dispatch. A crash cannot repeat a paid activation.
Claim each idle wake before dispatch. A crash cannot repeat a paid activation.
(read-state relay-url)Read the private machine state of one relay origin. A relay without a file gets no network work.
Read the private machine state of one relay origin. A relay without a file gets no network work.
(register! db {:keys [relay_url admin_token] :as body})Register this machine on a relay with the rooms administrator token. The machine gets the right to create rooms there, also when it joined that relay through an invitation.
Register this machine on a relay with the rooms administrator token. The machine gets the right to create rooms there, also when it joined that relay through an invitation.
(register-settings! rooms)Membership permits selection. It never selects or shares a session. A room that leaves the membership loses its access setting.
Membership permits selection. It never selects or shares a session. A room that leaves the membership loses its access setting.
(selected-room db sid)Resolve fresh restrictions. A denied or revoked room cannot receive session data.
Resolve fresh restrictions. A denied or revoked room cannot receive session data.
(set-machine-name! db value)Save the name that rooms show for this machine, send it to each connected relay and return it. A relay that does not answer gets the name at the next status check.
Save the name that rooms show for this machine, send it to each connected relay and return it. A relay that does not answer gets the name at the next status check.
(setting? id)True for the room selection, wake and access settings. They apply on the next Council call.
True for the room selection, wake and access settings. They apply on the next Council call.
(start! db)Own one bounded poller for this gateway. Return its stop function.
Own one bounded poller for this gateway. Return its stop function.
(status! db)Return safe membership metadata for each connected relay. No key, invite, cursor or transcript is included.
Return safe membership metadata for each connected relay. No key, invite, cursor or transcript is included.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |