RoomFactory

interface RoomFactory

Creates Rooms backed by a us.tractat.kuilt.core.Loom.

The RoomFactory wraps one us.tractat.kuilt.core.Loom instance and creates rooms via host (new session) or join (existing session).

Inheritors

Functions

Link copied to clipboard
abstract suspend fun host(pattern: Pattern): Room

Host a new room. The caller's peer becomes the SessionRole.Host.

Link copied to clipboard
abstract suspend fun join(tag: Tag): Room

Join an existing room. The caller's peer becomes a SessionRole.Joiner.