rsocket-js icon indicating copy to clipboard operation
rsocket-js copied to clipboard

Investigate Uint8Array as replacement for Buffer

Open viglucci opened this issue 1 year ago • 2 comments

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.

Motivation

Simplify usage of rsocket-js in browser environments.

Desired solution

Replace Buffer usage with Uint8Array.

Considered alternatives

Continue using Buffer and provide stronger guidance that Browser use-cases will require polyfill.

Additional context

  • https://github.com/sindresorhus/uint8array-extras
  • #267
  • #221
  • #213
  • #219

viglucci avatar Feb 19 '24 01:02 viglucci

any progress? I think this is one of the priorities that should be accomplished as soon as possible. It would also be reasonable to revive reactor-core-js, I have my own implementation, should work well with rsocket-js, but it is experimental,

CKATEPTb avatar May 14 '25 20:05 CKATEPTb