Feature request: Build-your-own SockJS
Our web application uses SockJS, and I love it. However, due to the app's nature it's paramount that its JS footprint be as small as possible.
Since we only need to support three of the transports (namely websocket, xhr-streaming, and iframe-htmlfile), I'd love to have a way to custom-compile a SockJS that supports only those three transports. Is this easily possible with the current infrastructure?
It isn't currently possible. I'm reworking how the library is built for the 1.0 release, so this is something I can keep in mind.
Great. Thanks for the lightning-fast response!
@brycekahle When you are planning to release 1.0? It's almost 2 years since last 0.3.4 build...
I would suggest cloning the repo and making changes manually. This ain't pretty but people have done it. Beware, SockJS is reasonably small (compressed), so I doubt the time spent on removing code is worth it.
1.0.0-beta.1 is in master. By customizing lib/transport-list.js and then running gulp browserify:min you can build your own version with a selected list of transports.