1.0.0 • Published 5 years ago

signalk-repl v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

signalk-repl

SignalK Node Server Plugin that provides a REPL for a running server.

After activation you can connect to the server using nc or preferably repl-client and the default socket /tmp/signalk-repl-sock.

The plugin exposes the variable app, which provides the same functionality plugins have access to:

$ rc /tmp/signalk-repl-sock
Signal K > app
{
  _events: [Object: null prototype] {
    mount: [Function: onmount],
    serverevent: [ [Function], [Function], [Function] ],
    nmea0183out: [Function: send],
    discovered: [Function]
  },
  _eventsCount: 3,
  _maxListeners: undefined,
  setMaxListeners: [Function: setMaxListeners],
  getMaxListeners: [Function: getMaxListeners],
  emit: [Function: emit],
  addListener: [Function: addListener],
  on: [Function: addListener],
  prependListener: [Function: prependListener],
  once: [Function: once],
  prependOnceListener: [Function: prependOnceListener],
  removeListener: [Function: removeListener],
  off: [Function: removeListener],
  removeAllListeners: [Function: removeAllListeners],
  listeners: [Function: listeners],
  rawListeners: [Function: rawListeners],
  listenerCount: [Function: listenerCount],
  eventNames: [Function: eventNames],
  init: [Function: init],
  ...
}

Signal K >

When using repl-client, regular readline functionality works like tab completion and history.