toip.tools

function · Browser and Node

splitTsp

The parts of a TSP message. Throws unless joinTsp rebuilds exactly these bytes. Routed and Nested messages have the same outer form as Direct ones, so they split too.

@toip-tools/mesh-transportView source
TypeScriptImport
import { splitTsp } from "@toip-tools/mesh-transport";

Declaration

TypeScriptSignature
splitTsp(wire: Uint8Array): TspParts;

Parameters

wirerequired
Uint8Array<ArrayBufferLike>

Returns