Building a smaller sockjs by supporting only a subset of transports

60 views
Skip to first unread message

Debby Mendez

unread,
Sep 11, 2015, 2:31:40 PM9/11/15
to sockjs
Is it possible to build a smaller sockjs by only supporting a subset of transports - e.g. websockets and xhr-streaming?  Do the build scripts support that at all, or has anyone tried it?

Bryce Kahle

unread,
Sep 11, 2015, 2:49:06 PM9/11/15
to de...@josesmex.com, sockjs
Yes. If you comment out the transports you don’t want from https://github.com/sockjs/sockjs-client/blob/master/lib/transport-list.js and run a new build via ‘gulp release’, the output will be in the dist directory.



Bryce


On Fri, Sep 11, 2015 at 11:31 AM, Debby Mendez <de...@josesmex.com> wrote:

Is it possible to build a smaller sockjs by only supporting a subset of transports - e.g. websockets and xhr-streaming?  Do the build scripts support that at all, or has anyone tried it?

--
You received this message because you are subscribed to the Google Groups "sockjs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sockjs+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

de...@glance.net

unread,
Sep 11, 2015, 3:23:05 PM9/11/15
to sockjs, de...@josesmex.com
Great, thanks
Reply all
Reply to author
Forward
0 new messages