Synclets logoSynclets

getPacketFromParts

The getPacketFromParts function encodes a destination and body into a packet string.

getPacketFromParts(
  toOrFrom: string,
  body: string,
): string
TypeDescription
toOrFromstring

The address.

bodystring

The message body.

returnsstring

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