RoomClient constructor
RoomClient({
- required Protocol<
ProtocolChannel> protocol, - OAuthTokenRequestHandler? oauthTokenRequestHandler,
Implementation
RoomClient({required this.protocol, OAuthTokenRequestHandler? oauthTokenRequestHandler}) {
protocol.addHandler("__response__", _handleResponse);
protocol.addHandler("connected", _handleParticipant);
protocol.addHandler("room_ready", _handleRoomReady);
protocol.addHandler("room.status", _handleRoomStatus);
sync = SyncClient(room: this);
storage = StorageClient(room: this);
developer = DeveloperClient(room: this);
messaging = MessagingClient(room: this);
agents = AgentsClient(room: this);
livekit = LivekitClient(room: this);
queues = QueuesClient(room: this);
database = DatabaseClient(room: this);
containers = ContainersClient(room: this);
secrets = SecretsClient(room: this, oauthTokenRequestHandler: oauthTokenRequestHandler);
}