*Protomux.pair takes an object bag on the first argument
This commit is contained in:
parent
90d8bfba63
commit
594e8d82a1
|
@ -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)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue