Improve message names

This commit is contained in:
hensm
2022-08-26 21:21:24 +01:00
parent 90b00c0ce4
commit 5b8a55a2de
8 changed files with 25 additions and 24 deletions

View File

@@ -48,8 +48,8 @@ export default class Discovery {
constructor(opts: DiscoveryOptions) {
/**
* When a service is found, gather device info from service object and
* TXT record, then send a `main:receiverDeviceUp` message.
* When a service is found, gather device info from service
* object and TXT record, then send a `main:deviceUp` message.
*/
this.browser.on("serviceUp", service => {
// Filter invalid results
@@ -69,7 +69,7 @@ export default class Discovery {
});
/**
* When a service is lost, send a `main:receiverDeviceDown` message with
* When a service is lost, send a `main:deviceDown` message with
* the service name as the `deviceId`.
*/
this.browser.on("serviceDown", service => {