-
Notifications
You must be signed in to change notification settings - Fork 91
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
Subscribe method causes error in IE11 #138
Comments
@jirehnimes I have not seen or heard about this error before - This means either it's caused by a recent browser update, some issue with your build/bundling tool, or more likely, something in your own code which is triggered by the subscription somehow.
|
@jondubois Thanks for responding immediately!
That's the only code block with the listener for socket subscribe. It's a method within a Vue component.
I did code also the content of I just want to clarify that the error happens only on the declaration of the subscribe channel because I commented the listener block or the loop after the subscribe channel declaration, the error persists on IE11. If I comment the subscribe channel declaration itself, the error will not occur. |
I can't see the line numbers in your stack trace. Based on what I can see, it does not look like an error from inside the |
@jondubois I doubled check and the issue only occurs when Here's how I initialize the socket instance. Which is the content of the imported |
@jondubois I removed any implementation of socket in the component and declared the If that's the case, I can't trigger the subscribe method by a method in a Vue component in IE11 even though it's working fine in Chrome. |
@jondubois Tried downgrading to v14.3.1, with the |
@jondubois Sorry for a lot of replies. I decided to use SocketCluster client v14.3.1 with |
@jirehnimes Glad you found a solution, I was going to suggest this approach with protocolVersion. I have not heard of this issue before so I'm thinking that it could have something to do with your bundler or it could be that IE11 does not support some of the newer JavaScript constructs which SCv16 requires. |
@jondubois Yeah, thanks! Thanks also for responding! It's kinda tricky too and did a lot of comment and uncomment to verify which one causes the issue before I started this ticket. |
Import and creating client is okay for IE11 but when using the subscribe method, it causes this error:
The application will stop into a white blank screen. It doesn't happen when in Chrome. See my implementation:
Edit #1: I was able to confirm that it's caused by the subscribe method, because I was trying to comment and uncomment SocketCluster related codes. When I uncomment the line for unsubscribe, the error occurs in IE11.
Edit #2: Tried to downgrade the version to 13, it seems the error doesn't happen. But I can't use it with a server in version 16.
Details:
SocketCluster Client Version: 16.0.1
Vue 2: 2.6.11
Expected: To work in IE11 similarly as in Chrome.
Actual: White blank screen in IE11 with syntax error. Working smoothly in Chrome.
The text was updated successfully, but these errors were encountered: