*Backwards compat fix to ensure Protomux is stored on the stream
This commit is contained in:
parent
556373c5bc
commit
2b12150d71
|
@ -69,6 +69,9 @@ export class ProtocolManager {
|
|||
this._swarm = swarm;
|
||||
|
||||
this._swarm.on("connection", (peer: any) => {
|
||||
if (!peer.userData) {
|
||||
peer.userData = null;
|
||||
}
|
||||
for (const protocol of this._protocols) {
|
||||
Protomux.from(peer).pair(
|
||||
{ protocol: protocol[0] },
|
||||
|
|
Loading…
Reference in New Issue