@fitbit/fdb-host
TypeScript icon, indicating that this package has built-in type declarations

1.7.3 • Public • Published

@fitbit/fdb-host

FDB Host is a package that can be used to create a Fitbit Host that can install Fitbit OS applications.

Interface

class Host extends EventEmitter

Create

static create(
  debuggerStream: stream.Duplex,
  hostInfo: HostInfo,
  {
    timeout = 10000,
  } = {},
)

HostInfo

{
  device: string;
  hostKind: 'device' | 'companion';
  maxMessageSize?: number;
}

Sending logs

// Console Messages (log, info, warn, error)
host.consoleMessage(args: ConsoleMessage);

// Trace Messages (trace, assert, exception)
host.consoleTrace(args: TraceMessage);

ConsoleMessage && Trace Message

/@fitbit/fdb-host/

    Package Sidebar

    Install

    npm i @fitbit/fdb-host

    Weekly Downloads

    116

    Version

    1.7.3

    License

    BSD-3-Clause

    Unpacked Size

    13.4 kB

    Total Files

    5

    Last publish

    Collaborators

    • gmaniak
    • stefanrm
    • hexxeh
    • orviwan