SecretsClient constructor
SecretsClient({
- required RoomClient room,
- OAuthTokenRequestHandler? oauthTokenRequestHandler,
Implementation
SecretsClient({required this.room, this.oauthTokenRequestHandler}) {
// Server -> client: another participant (or the server) requests us to obtain an OAuth token.
room.protocol.addHandler("secrets.request_oauth_token", _handleClientOAuthTokenRequest);
}