mirror of https://github.com/waku-org/js-waku.git
feat: add libp2p option for max ping connections
This commit is contained in:
parent
0ffce07924
commit
ea43068848
|
@ -29,4 +29,5 @@ export type CreateLibp2pOptions = Libp2pOptions & {
|
|||
* @default false
|
||||
*/
|
||||
hideWebSocketInfo?: boolean;
|
||||
pingMaxInboundStreams?: number;
|
||||
};
|
||||
|
|
|
@ -70,7 +70,9 @@ export async function defaultLibp2p(
|
|||
identify: identify({
|
||||
agentVersion: userAgent ?? DefaultUserAgent
|
||||
}),
|
||||
ping: ping(),
|
||||
ping: ping({
|
||||
maxInboundStreams: options?.pingMaxInboundStreams ?? 10
|
||||
}),
|
||||
...metadataService,
|
||||
...pubsubService,
|
||||
...options?.services
|
||||
|
|
Loading…
Reference in New Issue