interface IdentifyInit {
    agentVersion?: string;
    maxInboundStreams?: number;
    maxMessageSize?: number;
    maxObservedAddresses?: number;
    maxOutboundStreams?: number;
    protocolPrefix?: string;
    runOnConnectionOpen?: boolean;
    runOnLimitedConnection?: boolean;
    timeout?: number;
}

Properties

agentVersion?: string

What details we should send as part of an identify message

maxInboundStreams?: number

The maximum number of inbound streams that may be open on a single connection for this protocol

Default

1
maxMessageSize?: number

Identify responses larger than this in bytes will be rejected

Default

8192
maxObservedAddresses?: number

The maximum number of observed addresses to send in an Identify message

maxOutboundStreams?: number

The maximum number of outbound streams that may be open on a single connection for this protocol

Default

1
protocolPrefix?: string

The prefix to use for the protocol

Default

'ipfs'
runOnConnectionOpen?: boolean

Whether to automatically run identify on newly opened connections

Default

true
runOnLimitedConnection?: boolean

Whether to run on connections with data or duration limits

Default

true
timeout?: number

How long we should wait for a remote peer to send their identify response

Default

5000