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

Iframe fallback refers to old version of SockJS-Client #222

Closed
holloway opened this issue Dec 14, 2016 · 5 comments
Closed

Iframe fallback refers to old version of SockJS-Client #222

holloway opened this issue Dec 14, 2016 · 5 comments

Comments

@holloway
Copy link
Contributor

I'm not sure if this is a bug or not, but on line 146 of sockjs.coffee there's a URL specified that's an old version of the SockJS-Client.

Should this be upgraded, or should users wanting a newer version just override the sockjs_url option?

fyi It's causing a bug in create-react-app.

@brycekahle
Copy link
Contributor

brycekahle commented Dec 14, 2016

We should probably update it to be the latest in 1.X https://cdn.jsdelivr.net/sockjs/1/sockjs.min.js

@raybooysen
Copy link

A new user of sock-js but why is the CDN URL included at all?

@brycekahle
Copy link
Contributor

@raybooysen Please read the documentation before asking questions: https://github.com/sockjs/sockjs-node#server-class

@raybooysen
Copy link

Hi @brycekahle, I have read the documentation, but this is more a discussion about why it is included at all. The documentation says:

This iframe also does need to load SockJS javascript client library, and this option lets you specify its url (if you're unsure, point it to the latest minified SockJS client release, this is the default)

It would seem prudent to make it required instead of falling back to something that needs to make a call across the internet, and removes the class of bugs around out of date CDN URLs.

@brycekahle
Copy link
Contributor

e6eeb42 updated the URL to be the latest 1.x release of sockjs-client. Closing this issue.

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

3 participants