@dxos/messaging 0.1.58-main.d82e9a3 → 0.1.58-main.e2fb32f

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.
@@ -12,8 +12,8 @@ import { trace } from '@dxos/protocols';
12
12
  import { Runtime } from '@dxos/protocols/proto/dxos/config';
13
13
  import { SwarmEvent } from '@dxos/protocols/proto/dxos/mesh/signal';
14
14
 
15
- import { CommandTrace, SignalClient, SignalStatus } from '../signal-client';
16
15
  import { SignalManager } from './signal-manager';
16
+ import { CommandTrace, SignalClient, SignalStatus } from '../signal-client';
17
17
 
18
18
  /**
19
19
  * Manages connection to multiple Signal Servers over WebSocket
@@ -39,10 +39,7 @@ export class WebsocketSignalManager implements SignalManager {
39
39
 
40
40
  private readonly _instanceId = PublicKey.random().toHex();
41
41
 
42
- // prettier-ignore
43
- constructor(
44
- private readonly _hosts: Runtime.Services.Signal[]
45
- ) {
42
+ constructor(private readonly _hosts: Runtime.Services.Signal[]) {
46
43
  log('Created WebsocketSignalManager', { hosts: this._hosts });
47
44
  for (const host of this._hosts) {
48
45
  if (this._servers.has(host.server)) {
@@ -51,7 +48,7 @@ export class WebsocketSignalManager implements SignalManager {
51
48
  const server = new SignalClient(
52
49
  host.server,
53
50
  async (message) => this.onMessage.emit(message),
54
- async (data) => this.swarmEvent.emit(data)
51
+ async (data) => this.swarmEvent.emit(data),
55
52
  );
56
53
  server.statusChanged.on(() => this.statusChanged.emit(this.getStatus()));
57
54