Closed ctomacheski closed 1 year ago
Describe the bug
TextEncoder.encodeInto usage is not always supported, which causes errors when calling writeVarString:
TextEncoder.encodeInto
writeVarString
.utf8TextEncoder.encodeInto is not a function.
More info:
y-protocols
encodeAwarenessUpdate
v0.2.52
672bcde
@dmonad I created a one-liner PR to fix this issue as support for iOS ≤ 14.4 is still relevant (7.6% of iPhone users worldwide are on this version as of Oct. 2022 if this source is correct).
Describe the bug
TextEncoder.encodeInto
usage is not always supported, which causes errors when callingwriteVarString
:More info:
y-protocols
APIencodeAwarenessUpdate
on iOS ≤ 14.4.v0.2.52
by commit672bcde
.TextEncoder.encodeInto
browser support: https://caniuse.com/mdn-api_textencoder_encodeinto