@dxos/network-manager 2.28.1-dev.db00c324 → 2.28.1-dev.dd12eae4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser-mocha/bundle.js +115265 -0
- package/dist/browser-mocha/main.js +27 -0
- package/dist/src/network-manager.d.ts +3 -0
- package/dist/src/network-manager.d.ts.map +1 -1
- package/dist/src/network-manager.js +4 -1
- package/dist/src/network-manager.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -10
- package/src/network-manager.ts +5 -5
package/src/network-manager.ts
CHANGED
|
@@ -30,15 +30,14 @@ export interface NetworkManagerOptions {
|
|
|
30
30
|
|
|
31
31
|
const log = debug('dxos:network-manager');
|
|
32
32
|
|
|
33
|
+
/**
|
|
34
|
+
* TODO(burdon): Comment.
|
|
35
|
+
*/
|
|
33
36
|
export class NetworkManager {
|
|
34
37
|
private readonly _ice?: any[];
|
|
35
|
-
|
|
36
38
|
private readonly _swarms = new ComplexMap<PublicKey, Swarm>(x => x.toHex());
|
|
37
|
-
|
|
38
39
|
private readonly _maps = new ComplexMap<PublicKey, SwarmMapper>(x => x.toHex());
|
|
39
|
-
|
|
40
40
|
private readonly _signal: SignalManager;
|
|
41
|
-
|
|
42
41
|
private readonly _connectionLog?: ConnectionLog;
|
|
43
42
|
|
|
44
43
|
public readonly topicsUpdated = new Event<void>();
|
|
@@ -141,7 +140,8 @@ export class NetworkManager {
|
|
|
141
140
|
|
|
142
141
|
await swarm.destroy();
|
|
143
142
|
this._swarms.delete(topic);
|
|
144
|
-
|
|
143
|
+
|
|
144
|
+
await this.topicsUpdated.emit();
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
// TODO(marik-d): Remove.
|