Admin: send an ACARS alert to all users.
Admin: assign a user to a net.
Admin: disconnect a user.
Admin: unassign a user from a net.
Open the WebSocket connection to the local StarComm app. Resolves when the connection is open and the hello handshake has been sent. Rejects if the initial connection fails.
Close the connection. Will not trigger automatic reconnection.
Remove a previously registered handler.
Remove a previously registered handler.
Remove a lifecycle handler.
Register a typed handler for a specific message type.
Register a wildcard handler for all messages.
Register a handler for connection lifecycle events.
Toggle/latch PTT on a net. Locks transmission on until pttStop is called. Use this for programmatic or sustained PTT.
Start momentary push-to-talk on a net. This mimics holding a physical PTT button — releases automatically if not sustained. For programmatic PTT, use pttHold instead.
Release push-to-talk on a net.
Request a fresh snapshot from the local client.
Standalone WebSocket client for the StarComm desktop application.
Connects to the StarComm desktop app's Mobile Remote WebSocket endpoint (
ws://<host>:<port>/control?token=<pairing_token>).This client is completely independent from StarCommsClient (the shard Owner API client). It requires only the pairing token from StarComm's settings (Settings → Mobile Remote).
PTT Modes
pttStart(netId)— Momentary mode. Mimics holding a physical PTT button. Releases automatically if not sustained (used by the phone app's press-and-hold gesture).pttHold(netId)— Toggle/latch mode. Tap once to lock transmission on, callpttStop(netId)to release. Use this for programmatic PTT.pttStop(netId)— Release transmission on a net.Example