Skip to content

Commit

Permalink
Fix import script from start-server.mdx (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
RoiArthurB authored Sep 29, 2024
1 parent 9080d57 commit 61163ea
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docs/scrcpy/start-server.mdx
Original file line number Diff line number Diff line change
@@ -36,12 +36,13 @@ Use `AdbScrcpyClient.start()` method with an option class to start the server. I

```ts transpile
import {
AdbScrcpyClient,
AdbScrcpyOptions2_1,
DEFAULT_SERVER_PATH,
ScrcpyOptions2_1,
AdbScrcpyClient,
AdbScrcpyOptions2_1
} from "@yume-chan/adb-scrcpy";
import {
DEFAULT_SERVER_PATH,
ScrcpyOptions2_1
} from "@yume-chan/scrcpy";
import SCRCPY_SERVER_VERSION from "@yume-chan/scrcpy/bin/version.js";

const options = new AdbScrcpyOptions2_1(
ScrcpyOptions2_1({
@@ -53,7 +54,7 @@ const client: AdbScrcpyClient = await AdbScrcpyClient.start(
adb,
DEFAULT_SERVER_PATH,
// If server binary was downloaded manually, must provide the correct version
SCRCPY_SERVER_VERSION,
VERSION,
options
);

0 comments on commit 61163ea

Please sign in to comment.