@meshtastic/transport-ws Provides WebSocket transport for Meshtastic
devices. Installation instructions are avaliable at
JSR
NPM
import { MeshDevice } from "@meshtastic/core";
import { TransportWebSocket } from "@meshtastic/transport-ws";
const transport = await TransportWebSocket.createFromUrl(new URL("ws://server:port/endpoint"));
const device = new MeshDevice(transport);The WebSocket API's used here are available almost everywhere.