JSteunou / webstomp-client

Stomp client over websocket for browsers
Apache License 2.0
299 stars 59 forks source link

Symbol is undefined after ws connected #48

Closed Lucas0819 closed 7 years ago

Lucas0819 commented 7 years ago

After websocket connected the "Symbol" is undefined while using IE11. And ws is not work. image When I use Chrome to connect ws, "Symbol" is a function. image

location: /dist/webstomp.js line 757.

used npm to install the webstomp-client. version: "webstomp-client": "^1.0.7"

JSteunou commented 7 years ago

If you need Symbol you should polyfill it with babel-polyfill or polyfill.io but that is not related to webstomp-client

Lucas0819 commented 7 years ago

thanks~

romerod commented 6 years ago

@JSteunou the generated webstomp.js is currently using Symbol and only works with IE11 when using the babel-polyfill, is this wanted?

For example: https://github.com/JSteunou/webstomp-client/blob/master/dist/webstomp.js#L39

JSteunou commented 6 years ago

Yes it is. Like I said above

If you need Symbol you should polyfill it with babel-polyfill or polyfill.io but that is not related to webstomp-client

romerod commented 6 years ago

I know it works with the polyfill, I just wanted to say that it is related to the webstomp client as Symbol is used in the distributed file, see link in previous comment


From: Jérôme Steunou notifications@github.com Sent: Monday, July 16, 2018 2:10:36 PM To: JSteunou/webstomp-client Cc: Daniel Romero; Comment Subject: Re: [JSteunou/webstomp-client] Symbol is undefined after ws connected (#48)

Yes it is. Like I said above

If you need Symbol you should polyfill it with babel-polyfill or polyfill.io but that is not related to webstomp-client

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/JSteunou/webstomp-client/issues/48#issuecomment-405227228, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADEJ3i_F4j6MmV8KhHNlxAtNoZTXESjyks5uHIK8gaJpZM4PVemo.