mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 16:49:58 +00:00
Rename bridge:initialize -> bridge:startDiscovery
This commit is contained in:
@@ -45,7 +45,7 @@ decodeTransform.on("data", (message: Message) => {
|
||||
break;
|
||||
}
|
||||
|
||||
case "bridge:initialize": {
|
||||
case "bridge:startDiscovery": {
|
||||
startDiscovery(message.data);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ type MessageDefinitions = {
|
||||
, "bridge:getInfo": string
|
||||
, "bridge:/getInfo": string
|
||||
|
||||
, "bridge:initialize": {
|
||||
, "bridge:startDiscovery": {
|
||||
shouldWatchStatus: boolean
|
||||
}
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ export default new class extends TypedEventTarget<EventMap> {
|
||||
port.onDisconnect.addListener(this.onBridgeDisconnect);
|
||||
|
||||
port.postMessage({
|
||||
subject: "bridge:initialize"
|
||||
subject: "bridge:startDiscovery"
|
||||
, data: {
|
||||
// Also send back status messages
|
||||
shouldWatchStatus: true
|
||||
|
||||
@@ -166,7 +166,7 @@ type AppMessageDefinitions = {
|
||||
, "bridge:getInfo": string
|
||||
, "bridge:/getInfo": string
|
||||
|
||||
, "bridge:initialize": {
|
||||
, "bridge:startDiscovery": {
|
||||
shouldWatchStatus: boolean
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user