Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion packages/core/js-peer/src/connection/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ export class RelayConnection extends FluenceConnection {

async connect(onIncomingParticle: ParticleHandler) {
await this._lib2p2Peer.start();

// TODO: make it configurable
Copy link
Contributor

@coder11 coder11 Mar 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's mention this task in the TODO description: DXJ-328

const handleOptions = {
maxInboundStreams: 1024,
maxOutboundStreams: 1024
}

this._lib2p2Peer.handle([PROTOCOL_NAME], async ({ connection, stream }) => {
pipe(
Expand All @@ -156,7 +162,7 @@ export class RelayConnection extends FluenceConnection {
}
},
);
});
}, handleOptions);

log.debug(`dialing to the node with client's address: ` + this._lib2p2Peer.peerId.toString());

Expand Down