Rename bridge:initialize -> bridge:startDiscovery

This commit is contained in:
hensm
2021-04-28 11:02:18 +01:00
parent a489b3951e
commit 6edfce45cc
4 changed files with 4 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ decodeTransform.on("data", (message: Message) => {
break; break;
} }
case "bridge:initialize": { case "bridge:startDiscovery": {
startDiscovery(message.data); startDiscovery(message.data);
break; break;
} }

View File

@@ -105,7 +105,7 @@ type MessageDefinitions = {
, "bridge:getInfo": string , "bridge:getInfo": string
, "bridge:/getInfo": string , "bridge:/getInfo": string
, "bridge:initialize": { , "bridge:startDiscovery": {
shouldWatchStatus: boolean shouldWatchStatus: boolean
} }

View File

@@ -46,7 +46,7 @@ export default new class extends TypedEventTarget<EventMap> {
port.onDisconnect.addListener(this.onBridgeDisconnect); port.onDisconnect.addListener(this.onBridgeDisconnect);
port.postMessage({ port.postMessage({
subject: "bridge:initialize" subject: "bridge:startDiscovery"
, data: { , data: {
// Also send back status messages // Also send back status messages
shouldWatchStatus: true shouldWatchStatus: true

View File

@@ -166,7 +166,7 @@ type AppMessageDefinitions = {
, "bridge:getInfo": string , "bridge:getInfo": string
, "bridge:/getInfo": string , "bridge:/getInfo": string
, "bridge:initialize": { , "bridge:startDiscovery": {
shouldWatchStatus: boolean shouldWatchStatus: boolean
} }