@packtrack/discovery
v0.0.1
Published
Finds the running packtrack director in a network.
Downloads
6
Readme
Discovery
Finds the running packtrack director in a network.
Usage
const discovery = new Discovery('device-1234');
const hostname = await discovery.find();Uses UDP ports 142 and 143.
Output
By default, all events log to console.
find will only resolve if a director was found, and will retry endlessly if not.
The following events are raised while connecting
onRequestSent
onRequestSendFail (error)
onRequestDiscovery
onResponse (remote)
onInvalidInvitation
onInvalidInvitationRoute (route)
onInvalidInvitationVersion (version)