Interface IRoomMembership
Tells whether a user is joined to a Matrix room, for a service that knows the room's state, such as one inside a homeserver; LiveKitAuthorizer then gives tokens only to the room's joined members.
Namespace: Uniform.LiveKit.Authorization
Assembly: Uniform.LiveKit.Authorization.dll
Syntax
public interface IRoomMembership
Methods
| Edit this page View SourceIsJoinedAsync(string, string, CancellationToken)
Return whether userId is currently joined to roomId; false also when the room is unknown.
Declaration
Task<bool> IsJoinedAsync(string roomId, string userId, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | roomId | |
| string | userId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<bool> |