Presence¶
Presence is being somewhere with other people right now. It is not history and it is not a message left for later. It is who is here at this moment.
Why presence matters¶
Most online communication is asynchronous. You send, they read later, they reply, and you read later still. That works for many things, but it is not being together. Kunuleco also supports the other kind, where you can see who else is here, you notice when someone arrives, and what you say reaches the people present as you say it.
Two kinds of here¶
In a place on your node. When you are in a place, you are present there. who lists
the people in your current place and everyone signed in on your node.
In a presence. A presence is a named gathering that one node hosts and people on other
nodes join. A Hall's presence and a shared room's are hosted by the node itself, so they stay
up with nobody signed in. A presence a person makes with create ~presence is hosted by that
person's session. Since 0.3.102 there is no lobby. When you sign in, your node puts you first in your own presence,
named by your handle (such as mira#7K2QX9), and then in node, the channel for the people on your node. You can make
more with create ~presence <name>.
Someone on another node joins it with join <host> <presence>, for example
join mira#7K2QX9 officers, and leaves with leave <presence>.
presences lists every presence you are in, on your node and others, one a line with the one you are in now marked
<- you are here. Each line is the form leave takes back, so typing leave and a line leaves exactly that one. A
name alone is on your node, and <host#disc>:<presence> is on another. Under Remembered, not rejoined: it lists the
joins your node could not rejoin when you signed in, and leave with one of those lines forgets it.
A Hall carries a presence named hall:<name>, and a shared room carries one named
room:<collection>/<room>, the collection being the Hall's name or the owner's handle (since 0.3.106). Their doors are not set with door. A room in your HOME admits people
by its space's rule once you share it, and a Hall and its rooms admit people through the Hall's door. See
Place Management.
The door on a presence¶
A presence you make with create ~presence has a door, and only you, its owner, can change
it. It is open by default, which means anyone who knows its name may join.
door officers show its door and how many people are invited
door officers invite only people you invite may join
door officers open anyone who knows its name may join
door officers invite mira#7K2QX9 invite a person
door officers uninvite mira#7K2QX9
An invite is stored against the identity a connection proved, not against a typed name. You can invite someone by the name their connection proved, by the exact name of an account on your node, or by their reference. A person you did not invite is told that the host did not let them in, because the presence is invite-only and its owner has not invited them. Your own presence, the one named by your handle, is open until you change its door.
The node channel¶
Since 0.3.102 every node has one channel named node, for the people on that node and nobody else. Everyone who signs
in joins it, over the Urchin client and over SSH. Talk in it with chat !node <message>, and if you have left it, come
back with join --local node. Nobody on another node can join it, and it is never named in an invite, a short code, a
meet seed or a findable record. A join to it from another node is refused in the same words as any closed door. Its
member list holds only the people on your node, and your own presence's list holds only you and your visitors.
When someone joins, the host records only the name their connection proved, and a join under any other name is refused. On your side of a presence you joined, your node accepts that presence's messages only from its host. In a Hall, each line of text also carries its writer's signature, and your node shows a line only under the name that signed it.
Two presences with one name¶
Two nodes can each host a presence called garden. Since 0.3.102 the Urchin client keeps each presence by its host and
its name together, so if you join both you get two windows, two chips and two member lists, and a line or a shared file
from one does not land in the other. What you send does not follow that split yet. chat !garden names only the
presence, so it goes to the one you joined last, and join the other again to speak there. See
Known issues.
Presence is not permission¶
A door decides who may be present. It grants nothing else. Someone in your presence or your place cannot open a capsule there unless you have granted it to them, and granting capsule access is a separate decision. See Trust and standing.
How it travels¶
The host keeps the member list. When someone speaks, the host passes the message to each member on another node over a connection it already has to them. It tries the LAN session first, then the member's stored connection, then Tor, then Veilid. If none of those works, the person who spoke is told that the message was not sent. The full order is in Reference: Transports.
The member list is kept in memory, not written to disk. When a member's connection closes, the host takes them off the list and the others see the updated membership, so nothing of their presence is left behind.
Related¶
- Places and Halls: where you are.
- Connections: how the nodes reach each other.
- Trust and standing: why presence is separate from access.