blind-relay
Advanced tools
Comparing version 1.3.0 to 1.3.1
11
index.js
@@ -155,2 +155,3 @@ const EventEmitter = require('events') | ||
// 1st pass: Create the raw streams needed for each end of the link. | ||
for (const link of pair.links) { | ||
@@ -160,3 +161,4 @@ link.createStream() | ||
for (const { isInitiator, session, remoteId, stream } of pair.links) { | ||
// 2nd pass: Connect the raw streams and set up handlers. | ||
for (const { isInitiator, session, stream } of pair.links) { | ||
const remote = pair.remote(isInitiator) | ||
@@ -171,5 +173,6 @@ | ||
session._streams.set(keyString, stream) | ||
} | ||
session._endMaybe() | ||
// 3rd pass: Let either end of the link know the streams were set up. | ||
for (const { isInitiator, session, remoteId, stream } of pair.links) { | ||
session._pair.send({ | ||
@@ -182,2 +185,4 @@ isInitiator, | ||
session._endMaybe() | ||
session.emit('pair', isInitiator, token, stream, remoteId) | ||
@@ -184,0 +189,0 @@ } |
{ | ||
"name": "blind-relay", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Blind relay for UDX over Protomux channels", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24965
421