1.2.1 • Published 3 years ago

@viriciti/udp-bus v1.2.1

Weekly downloads
2
License
ISC
Repository
-
Last release
3 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

3 years ago

1.1.4

5 years ago

1.1.3

5 years ago