Interface P2PClientOptions

interface P2PClientOptions {
    heartbeatTimoutMs?: number;
    provider: P2PProvider;
    setTimeoutImpl?: SetTimeout;
}

Properties

heartbeatTimoutMs?: number

heartbeat timout in milliseconds, or undefined if no heartbeat is desired

provider: P2PProvider

P2P provider to use

setTimeoutImpl?: SetTimeout

alternative implementation for setTimeout (mostly for testing)