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

Static #391

Merged
merged 15 commits into from
Sep 7, 2011
Merged

Static #391

merged 15 commits into from
Sep 7, 2011

Conversation

3rd-Eden
Copy link
Contributor

New static internals for Socket.IO

This is a complete rewrite of the old static functions that where in the manager module. This rewrite now builds the socket.io.js file based on the enabled transport types on the server. So by default it will now also strip all the flash related javascript code from the file until you enable it manually.

In addition to this there is support to create your own bundle of socket.io transports based on URL parameters. This might be useful for mobile applications as they probably don't need HTMLFile or WebSockets. But your desktop version does. Using /socket.io+websocket.js will file that only contains all code for websocket support. You can add more transports by append +<transportname> to the path.

Also new in this build is support for GZIP. When we first build up our cache we spawn a gzip process and pipe the data to it, if it's successful we will store it in our cache.

I also extracted the test cases from the manager.test.js to static.test.js which now features a total 19 tests for static content.

Feedback & pulls are more than welcome ;)

@3rd-Eden
Copy link
Contributor Author

Related pull request on socket.io-client: socketio/socket.io-client#241

It fixes the dependencies for the jsonp-polling.

@DTrejo
Copy link

DTrejo commented Aug 8, 2011

+1 sounds good :)

rauchg added a commit that referenced this pull request Sep 7, 2011
@rauchg rauchg merged commit b2f9f19 into socketio:master Sep 7, 2011
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

Successfully merging this pull request may close these issues.

3 participants