getPacketFromParts
The getPacketFromParts function encodes a destination and body into a packet string.
getPacketFromParts(
toOrFrom: string,
body: string,
): string| Type | Description | |
|---|---|---|
toOrFrom | string | The address. |
body | string | The message body. |
| returns | string | A packet string ready for transmission. |
This function serializes a address and message body into a packet format suitable for transmission over a transport. Use this when implementing custom transport send handlers.
Since
v0.0.0