@pureweb/platform-streaming-agent
Version:
The PureWeb platform streaming agent enables your game to communicate and stream through the PureWeb Platform
23 lines (22 loc) • 880 B
TypeScript
import { ILocalAgent } from '@pureweb/platform-sdk';
import { ConnectionStates } from '../../ConnectionStates';
import { IConnectionService } from '../../IConnectionService';
export declare class SidecarService implements IConnectionService {
private static readonly SERVER_ADDRESS;
private readonly agent;
private server;
private readonly port;
private readonly heartRate;
private readonly connectionTimeout;
private connectionStateChange;
private environmentServer;
private messagingServer;
private storageServer;
private presenceServer;
constructor(agent: ILocalAgent, port: number, connectionTimeout?: number, heartRate?: number);
onStateChanged(handler: (state: ConnectionStates) => void): void;
start: () => Promise<boolean>;
private connectionStateChanges;
stop: () => void;
get isConnected(): boolean;
}