1.0.2 • Published 5 months ago

bajo-udp v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

bajo-udp

Plugin name: bajoUdp, alias: udp

GitHub package.json version NPM Version

Attention: I do NOT accept any pull request at the moment, thanks!

UDP binding for Bajo. If Bajo Emitter is loaded, events & messages are also handled through Bajo Emitter processing system.

Installation

Goto your <bajo-base-dir> and type:

$ npm install bajo-udp

Now open your <bajo-data-dir>/config/.plugins and put bajo-udp in it . Order doesn't matter here, but you should put it below bajo-emitter:

...
bajo-emitter
bajo-udp
...

Configuration

Open/create <bajo-data-dir>/config/bajoUdp.json:

KeyTypeRequiredDefaultDescription
connectionsarrayno[]Define one or more connections
  namestringnodefaultConnection name, must be unique among all your connections
  hoststringyes0.0.0.0IP or hostname, e.g: mqtt://localhost
  portintegeryesPort number to bind to

Example:

{
  "connections": [{
    "name": "local",
    "host": "0.0.0.0",
    "port": 10000
  }]
}

Hook

  • bajoUdp:onClose (conn)
  • bajoUdp:onError (conn, error)
  • bajoUdp:onListening (conn)
  • bajoUdp:onMessage (conn, message)

License

MIT

1.0.2

5 months ago

1.0.1

6 months ago

0.3.0

1 year ago

0.2.3

1 year ago

0.2.4

1 year ago

0.2.1

1 year ago

0.2.2

1 year ago

0.2.0

1 year ago