mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-12 02:29:59 +00:00
Rename bridge:initialize -> bridge:startDiscovery
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user