*Protomux.pair takes an object bag on the first argument

This commit is contained in:
Derrick Hammer 2023-01-13 17:42:52 -05:00
parent 90d8bfba63
commit 594e8d82a1
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ export class ProtocolManager {
this._swarm.on("connection", (peer: any) => {
for (const protocol of this._protocols) {
Protomux.from(peer).pair(
protocol[0],
{ protocol: protocol[0] },
this.handler.bind(this, protocol[0], peer)
);
}