Skip to content
This repository was archived by the owner on Aug 11, 2025. It is now read-only.

viriciti/udp-bus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors