UNPKG

@foxglove/ws-protocol-examples

Version:

Foxglove WebSocket protocol examples

32 lines (28 loc) 1.1 kB
#!/usr/bin/env node import { program } from "commander"; import ImageServer from "./examples/image-server"; import McapPlay from "./examples/mcap-play"; import McapRecord from "./examples/mcap-record"; import ParamClient from "./examples/param-client"; import ParamServer from "./examples/param-server"; import PerfTestClient from "./examples/perf-test-client"; import PublishClient from "./examples/publish-client"; import ServiceClient from "./examples/service-client"; import ServiceServer from "./examples/service-server"; import SimpleClient from "./examples/simple-client"; import Sysmon from "./examples/sysmon"; program.name("ws-protocol-examples"); program.addCommand(ImageServer); program.addCommand(McapPlay); program.addCommand(McapRecord); program.addCommand(PublishClient); program.addCommand(SimpleClient); program.addCommand(Sysmon); program.addCommand(PerfTestClient); program.addCommand(ParamClient); program.addCommand(ParamServer); program.addCommand(ServiceClient); program.addCommand(ServiceServer); program.parseAsync().catch((error: unknown) => { console.error(error); });