Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using typed-arrays-polyfill error #50

Open
zhengtg opened this issue Jun 12, 2015 · 3 comments
Open

using typed-arrays-polyfill error #50

zhengtg opened this issue Jun 12, 2015 · 3 comments
Labels

Comments

@zhengtg
Copy link

zhengtg commented Jun 12, 2015

using typed-arrays-polyfill to send msg by websocket, and capture package by wireshark,
the opcode of package is text(0001). without using polyfill, the opcode value is binary (0010) .

ps:
already set websocket binaryType is "arraybuffer";

@dcodeIO
Copy link
Member

dcodeIO commented Jun 12, 2015

If you have to use a polyfill, binaryType="arraybuffer" is probably not supported by the (older) browser.

@zhengtg
Copy link
Author

zhengtg commented Jun 24, 2015

oh, yes, polyfill maybe not supported "arraybuffer", i'am sure my browser supported arraybuffer

@dcodeIO
Copy link
Member

dcodeIO commented Jul 7, 2015

What I wanted to say is that if you have to use a polyfill because DataView or something isn't supported, XmlHttpRequest most likely also doesn't support ArrayBuffers as a payload. The sole existence of ArrayBuffers doesn't imply that XmlHttpRequest already supports them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants