spacesvr-websessions
Version:
A standardized reality for future of the 3D Web
16 lines (15 loc) • 529 B
TypeScript
import { Response } from "node-fetch";
import { Peer } from "peerjs";
import { Signaller, SignallerConfig } from "./";
export declare class MuseSignaller implements Signaller {
sessionId: string;
sessionPassword?: string;
worldName?: string;
host: string;
peerId: string;
constructor(peer: Peer, config?: Partial<SignallerConfig>);
callBackend<T = any>(path: string, body: any): Promise<Response>;
join(): Promise<string[] | undefined>;
leave(): Promise<void>;
wave(): Promise<boolean>;
}