@basmilius/apple-devices 0.0.82 → 0.0.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ var STATE_SUBSCRIBE_SYMBOL = Symbol("com.basmilius.airplay:subscribe");
16
16
  var STATE_UNSUBSCRIBE_SYMBOL = Symbol("com.basmilius.airplay:unsubscribe");
17
17
  // src/airplay/device.ts
18
18
  import { EventEmitter as EventEmitter2 } from "node:events";
19
- import { AirPlay as AirPlay2, DataStreamMessage as DataStreamMessage3 } from "@basmilius/apple-airplay";
19
+ import { AirPlay as AirPlay2, DataStreamMessage as DataStreamMessage3, Proto as Proto5 } from "@basmilius/apple-airplay";
20
20
  import { reporter as reporter2, waitFor as waitFor2 } from "@basmilius/apple-common";
21
21
 
22
22
  // src/airplay/remote.ts
@@ -1617,6 +1617,8 @@ class device_default extends EventEmitter2 {
1617
1617
  this.#protocol.eventStream.on("error", async (err) => this.#onError(err));
1618
1618
  this.#protocol.eventStream.on("timeout", async () => this.#onTimeout());
1619
1619
  this.#feedbackInterval = setInterval(async () => await this.#feedback(), FEEDBACK_INTERVAL);
1620
+ await this.#protocol.dataStream.exchange(DataStreamMessage3.setConnectionState(Proto5.SetConnectionStateMessage_ConnectionState.Connecting));
1621
+ await waitFor2(500);
1620
1622
  const gid = this.#discoveryResult.packet.additionals.find((a) => ("rdata" in a) && typeof a["rdata"] === "object" && ("gid" in a["rdata"]))?.["rdata"]["gid"];
1621
1623
  if (gid) {
1622
1624
  await this.#protocol.dataStream.exchange(DataStreamMessage3.configureConnection(gid));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@basmilius/apple-devices",
3
3
  "description": "Exposes various Apple devices to connect with either AirPlay or Companion Link.",
4
- "version": "0.0.82",
4
+ "version": "0.0.84",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": {
@@ -43,10 +43,10 @@
43
43
  }
44
44
  },
45
45
  "dependencies": {
46
- "@basmilius/apple-airplay": "0.0.82",
47
- "@basmilius/apple-common": "0.0.82",
48
- "@basmilius/apple-companion-link": "0.0.82",
49
- "@basmilius/apple-encoding": "0.0.82"
46
+ "@basmilius/apple-airplay": "0.0.84",
47
+ "@basmilius/apple-common": "0.0.84",
48
+ "@basmilius/apple-companion-link": "0.0.84",
49
+ "@basmilius/apple-encoding": "0.0.84"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@basmilius/tools": "^2.23.0",