Open viglucci opened 6 months ago
We should look into using Uint8Array as an alternative to Buffer since from what I am reading it is supported in both Browser & Node runtimes.
Uint8Array
Buffer
Simplify usage of rsocket-js in browser environments.
Replace Buffer usage with Uint8Array.
Continue using Buffer and provide stronger guidance that Browser use-cases will require polyfill.
We should look into using
Uint8Array
as an alternative toBuffer
since from what I am reading it is supported in both Browser & Node runtimes.Motivation
Simplify usage of rsocket-js in browser environments.
Desired solution
Replace
Buffer
usage withUint8Array
.Considered alternatives
Continue using
Buffer
and provide stronger guidance that Browser use-cases will require polyfill.Additional context
267
221
213
219