UNPKG

@signalwire/js

Version:
38 lines 1.57 kB
import { BaseClient, ClientEvents, ClientContract } from '@signalwire/core'; import { ConnectionOptions } from '@signalwire/webrtc'; import { VideoManager } from './cantina'; import type { Client as ChatClient } from './chat/Client'; import type { Client as PubSubClient } from './pubSub/Client'; import type { RoomSession } from './video/RoomSession'; import { CallParams } from './fabric/interfaces'; export interface Client<RoomSessionType = RoomSession> extends ClientContract<Client<RoomSessionType>, ClientEvents> { rooms: ClientAPI['rooms']; chat: ClientAPI['chat']; pubSub: ClientAPI['pubSub']; } export interface MakeRoomOptions extends CallParams, ConnectionOptions { /** Local media stream to override the local video and audio stream tracks */ localStream?: MediaStream; } export declare class ClientAPI extends BaseClient<ClientEvents> { private _videoManager; private _chat; private _pubSub; get rooms(): { makeRoomObject: (makeRoomOptions: MakeRoomOptions) => import("./video/VideoRoomSession").VideoRoomSession; }; get chat(): ChatClient; get pubSub(): PubSubClient; /** @internal */ get videoManager(): VideoManager; /** * Reauthenticate with the SignalWire network using a new token * For now it returns void since with an invalid token the server * will close the connection right away so we can hook on the session * events in case. Need to improve it. * * @internal */ reauthenticate(token: string): void; } //# sourceMappingURL=Client.d.ts.map