@kagamidigital/salt-sdk-mirror
    Preparing search index...

    Class RoboSetupListener

    Listens for a robo host's setup-progress updates and re-emits the ones belonging to this organisation.

    Updates are advisory and can be missed — see RoboSetupUpdate. No sequence of them means a host is ready; RoboHost.waitUntilOnline answers that.

    Obtain one via RoboHost.listenToSetup or Salt.listenToRoboSetup.

    const setup = await host.listenToSetup();
    setup.on('setupUpdate', ({ step, description }) => {
    console.log(`${step}: ${description}`);
    });

    const online = await host.waitUntilOnline();
    setup.disableSetupListener();

    Hierarchy

    Index

    Properties

    prefixed: string | boolean

    Methods

    • Stop listening for setup updates. Unsubscribes without closing the underlying websocket — call Salt.disconnect to close the socket and allow the Node.js process to exit.

      Returns void

      setup.disableSetupListener();
      
    • Subscribes to setup updates on the underlying socket. Called by RoboHost.listenToSetup and Salt.listenToRoboSetup after construction; you only need to call it again after a matching disableSetupListener to resume listening. Idempotent — calling while already enabled is a no-op.

      Returns void

      setup.enableSetupListener();
      
    • Remove all listeners, or those of the specified event.

      Parameters

      • Optionalevent: keyof RoboSetupListenerEvents

      Returns this