getPartsFromPacket
The getPartsFromPacket function splits a packet into the destination and body parts.
getPartsFromPacket(packet: string): [toOrFrom: string, body: string]| Type | Description | |
|---|---|---|
packet | string | The packet string to parse. |
| returns | [toOrFrom: string, body: string] | A tuple of [destination, body]. |
This function deserializes a packet string received over a transport back into its constituent parts: the destination address and the message body. Use this when implementing custom transport receive handlers.
Since
v0.0.0