@pureweb/platform-streaming-agent
Version:
The PureWeb platform streaming agent enables your game to communicate and stream through the PureWeb Platform
16 lines (15 loc) • 609 B
TypeScript
import { AbstractExtension } from '../../IExtension';
import { IConnectionService } from '../../IConnectionService';
import { ConnectionStates } from '../../ConnectionStates';
export declare class LeasingExtension extends AbstractExtension implements IConnectionService {
static readonly LEASE_REQUEST_WINDOW_MS: number;
private leaseUrl;
private timeout;
private stopRequested;
private connectionStateChange;
constructor();
onStateChanged(handler: (state: ConnectionStates) => void): void;
start: () => Promise<boolean>;
stop: () => Promise<boolean>;
private lease;
}