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

Uint8Array.forEach (IE 11) #12

Closed
lRawd opened this issue Oct 1, 2018 · 4 comments
Closed

Uint8Array.forEach (IE 11) #12

lRawd opened this issue Oct 1, 2018 · 4 comments

Comments

@lRawd
Copy link

lRawd commented Oct 1, 2018

I am in the process of converting from the original https://github.com/jmesnil/stomp-websocket and have encountered the following issue in IE 11:

Uint8Array does not support property or method 'forEach' @ Parser.prototype.parseChunk

@lRawd
Copy link
Author

lRawd commented Oct 1, 2018

chunk.forEach((byte) => {

@kum-deepak
Copy link
Member

I do know that 5.x.x will not work in IE10 or below for sure - IE10 does not support Unit8Array which is a critical dependency.

I am changing this forEach to regular Array access. Hope it will resolve the issue in IE11.

In case you need broader browser compatibility you may try 4.x.x (maintained at https://github.com/stomp-js/stomp-websocket) of this library which is an incremental change over https://github.com/jmesnil/stomp-websocket

@kum-deepak kum-deepak reopened this Oct 1, 2018
@kum-deepak
Copy link
Member

Released 5.0.0-beta.4 with this change. Please check if it works. Thanks!

@lRawd
Copy link
Author

lRawd commented Oct 1, 2018

It works, thanks!

@lRawd lRawd closed this as completed Oct 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants