Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(devices): recover stalled video without losing simulator input #17566

Mergedjuliusmarmingemerged 2 commits intomain fromrefs/pull/17566/headmerged by juliusmarminge View on GitHub

Showing 6 changed files with 104 additions and 6 deletions (loading 3).

x
0 of 6 viewed, 6 left
3 additions and 0 deletionsapps/mobile/src/features/devices/device-stream.browser.test.tsModified
View file
@@ -38,6 +38,7 @@
static OPEN = 1;
readyState = 1;
onopen: (() => void) | null = null;
+ onmessage: ((event: { data: ArrayBuffer }) => void) | null = null;
close = vi.fn();
send = vi.fn();
constructor() {
@@ -86,6 +87,8 @@
const { elements, messages, sockets, configuration } = await setup();
sockets[0]!.onopen?.();
expect(messages()).not.toContainEqual({ type: "status", status: "streaming" });
+ expect(messages()).not.toContainEqual({ type: "input", connected: true });
+ sockets[0]!.onmessage?.({ data: new Uint8Array([0x83]).buffer });
expect(messages()).toContainEqual({ type: "input", connected: true });
const image = elements.find((element) => element.tag === "img")!;
image.naturalWidth = 400;
2 additions and 2 deletionsapps/server/src/device/DeviceToolchain.tsModified
View file
@@ -26,9 +26,9 @@
import * as ProcessRunner from "../processRunner.ts";
​
const DEVICE_HUB_PACKAGE = "expo-device-hub";
-export const DEVICE_HUB_VERSION = "0.12.0";
+export const DEVICE_HUB_VERSION = "0.15.3";
const AGENT_DEVICE_PACKAGE = "agent-device";
-export const AGENT_DEVICE_VERSION = "0.21.12";