@pureweb/platform-streaming-agent
Version:
The PureWeb platform streaming agent enables your game to communicate and stream through the PureWeb Platform
13 lines (12 loc) • 565 B
TypeScript
import { AbstractExtension } from '../../IExtension';
import { IConnectionService } from '../../IConnectionService';
import { ConnectionStates } from '../../ConnectionStates';
/**
* Extension to monitor the runtime of the agent. It will trigger a state change event when the maximum runtime is reached.
*/
export declare class RuntimeExtension extends AbstractExtension implements IConnectionService {
private connectionStateChange;
constructor();
onStateChanged(handler: (state: ConnectionStates) => void): void;
start: () => Promise<boolean>;
}