Skip to content
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
2 changes: 2 additions & 0 deletions packages/http/src/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class Libp2pAgent extends NodeAgent {
this.peer = init.peer
}

// @ts-expect-error types are wrong
createConnection (options: TcpNetConnectOpts, cb: (err?: Error, socket?: Socket) => void): void {
createConnection(this.components.connectionManager, this.peer, options)
.then(socket => {
Expand All @@ -88,6 +89,7 @@ export class HTTP extends HTTPBrowser implements HTTPInterface {
return new NodeAgent(options)
}

// @ts-expect-error types are wrong
return new Libp2pAgent(this.components, {
...options,
peer
Expand Down