SecretsClient constructor

SecretsClient({
  1. required RoomClient room,
  2. 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);
}