Skip to content
folkways

See who’s online

Folkways Presence

Show who is online in your app and who is in a room, alongside typing and live cursors.

SignalPresence

rooms/design-reviewpresence · signal

4 online
MKJBALLT

In this room now

  • MK

    Mia Koskinen

    laptopphone
  • JB

    Jonas Berg

    laptop
  • AL

    Aino Laine

    phone
  • LT

    Leo Tamm

    tablet
Leo joined from a tablet · one entry per connection, kept by Folkways
Who is in a room and on which devices. With Keep presence on in the room’s rule, Folkways keeps the list from each connection, and people drop off the moment they disconnect.

Features

What Presence does.

Live works today·Coming soon on the roadmap

  • Live

    Online status

    See whether each user is online across your app, and on how many devices. Kept by Folkways, not by your clients.

  • Live

    Live activity

    Signals carry cursors and “who’s here right now”, and fade after five seconds.

  • Live

    Public viewers

    Show live activity on read-only public pages with a publishable key.

  • Live

    Works with React

    Live lists of who’s here with useSyncExternalStore.

  • Live

    Presence in a topic

    Folkways keeps who is in each room. Turn on Keep presence in the topic rule.

How it’s built

The topics.

One topic can carry several delivery types: each event name has its own, set once in the topic rule.

rooms/{room}Keep presence on

A room with Keep presence on: Folkways keeps who is in it, one entry per connection, and live activity rides on the same topic as signals.

Events on rooms/{room}
EventType
cursorLive cursors and “who’s here right now”. Each signal fades after five seconds.Signal
$online/{user}kept by Folkways

Whether a user is online anywhere in your app, with one entry per device. Kept by Folkways.

Details

Good for

  • Collaborative editors
  • Game lobbies
  • Support dashboards
  • Live events

Good to know

  • A user reads their own online status without any permission. Reading someone else’s needs the presence operation on it in the token.
  • Reading who is in a room needs the presence operation on it in the token. For live cursors and activity, send a signal at most every couple of seconds per person.