1.2.1 • Published 4 years ago

@viriciti/udp-bus v1.2.1

Weekly downloads
2
License
ISC
Repository
-
Last release
4 years ago

API

Client

  • constructor arguments:
    • multicastPort: required
    • clientId: required
    • multicastAddress: optional (default 'localhost')
  • sendMessage(message, cb) arguments:
    • message: format { type: '', payload: '' }
    • cb: (error)

Server

  • constructor arguments: * multicastPort: required * multicastAddress: optional (default 'localhost')
  • create() no arguments (Initialize server)

  • close() no arguments (Close server connection)

  • events: * connected, triggered when the server starts listen * message, triggered when the server receives a message * error, triggered when there is an error. If there is no listener, the error will be thrown.

1.2.1

4 years ago

1.1.4

6 years ago

1.1.3

6 years ago