Skip to content

Commit ed4efc9

Browse files
authored
Update web-app.md (#4468)
1 parent 5f8d1af commit ed4efc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/operate/control/web-app.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The following files create an example TypeScript web app that connects to a mach
4848
```ts {class="line-numbers linkable-line-numbers"}
4949
// This code must be run in a browser environment.
5050
import * as VIAM from "@viamrobotics/sdk";
51-
import { CameraClient, SensorClient } from "@viamrobotics/sdk";
51+
import { CameraClient, SensorClient, StreamClient } from "@viamrobotics/sdk";
5252

5353
let isStreaming = false;
5454
let camera: CameraClient;
@@ -59,7 +59,7 @@ let machine: VIAM.RobotClient;
5959
const main = async () => {
6060
const host = "demo-main.abcdefg1234.viam.cloud";
6161

62-
const machine = await VIAM.createRobotClient({
62+
machine = await VIAM.createRobotClient({
6363
host,
6464
credentials: {
6565
type: "api-key",

0 commit comments

Comments
 (0)