role

abstract val role: StateFlow<SessionRole>

The role this peer plays in the room.

Starts as SessionRole.Host or SessionRole.Joiner based on which RoomFactory method was called. May change in 1C (host-election).