Decodes a payload received from the wire back into its local form.
The encoded payload
The original string or Uint8Array
string
Uint8Array
decodeFrameData({ data: 'AQID', binary: true }); // Uint8Array([1, 2, 3]) Copy
decodeFrameData({ data: 'AQID', binary: true }); // Uint8Array([1, 2, 3])
0.2.0
Decodes a payload received from the wire back into its local form.