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-transport` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/mesh-transport/src/tsp.ts#L42)

Import:

```ts
import { splitTsp } from "@toip-tools/mesh-transport";
```

## Declaration

Signature:

```ts
splitTsp(wire: Uint8Array): TspParts;
```

### Parameters

- **`wire` (required)**: `Uint8Array<ArrayBufferLike>`

### Returns

`TspParts`

[Usage guide](https://toip.tools/toolkit/mesh-transport/#usage) · [Error handling](https://toip.tools/toolkit/mesh-transport/#errors) · [All exports](https://toip.tools/toolkit/mesh-transport/api/)

---

This is the Markdown version of https://toip.tools/toolkit/mesh-transport/api/splitTsp/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
