@squawk
    Preparing search index...

    Function createBeastStream

    • Creates a live client for a Beast-format TCP feed (dump1090-fa, readsb, or a real Mode-S Beast dongle). Node-only (raw TCP sockets have no browser API) - not exported from this package's main entry or its /browser subpath, only from /stream.

      Reconnects automatically, after reconnectDelayMs, if the connection closes or errors, until stop() is called.

      import { createBeastStream } from '@squawk/beast/stream';

      const stream = createBeastStream({ host: '192.168.1.50' });
      stream.addEventListener('beast:message', (event) => {
      console.log((event as CustomEvent).detail.frame);
      });
      stream.start();

      Parameters

      Returns BeastStream

      A BeastStream ready to start().