Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.49 KB

File metadata and controls

32 lines (22 loc) · 1.49 KB

@meshtastic/transport-ws

JSR CI CLA assistant Fiscal Contributors Vercel

Overview

@meshtastic/transport-ws Provides WebSocket transport for Meshtastic devices. Installation instructions are avaliable at JSR NPM

Usage

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);

Stats

Alt

Compatibility

The WebSocket API's used here are available almost everywhere.