New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support send TypedArray
objects
#4715
Comments
What are you expecting to happen? Buffers are sent as an octet stream: Lines 151 to 157 in 7431a23
A |
Sorry @jsumners, I don't understand what the conflict is between In my mind, Buffers and TypedArrays are just different ways under different environments to manipulate binary data. Both of them can do the same thing on any piece of binary data. |
I didn't say there is a conflict. I asked what you expect to happen when |
Ok, I misunderstood.
As same as buffers I think. Send bytes to client. |
Then I have already highlighted where a change needs to be made, and what needs to be done. A PR would be welcome. |
Totally agree! The new |
Fixed by #4735, right? |
Done by #4735 |
Prerequisites
馃殌 Feature Proposal
AFAIK, currently only node.js
Buffer
objects are accepted to be sent byreply.send()
method for buffer-like data.However, as a part of ECMAScript standard,
TypedArray
and its subclasses are also commonly used, because they are well supported by both of browser and node. So support them is obviously necessary.Motivation
No response
Example
No response
The text was updated successfully, but these errors were encountered: