Files
meteor/packages/socket-stream-client
Ben Newman f373219e42 Statically import SockJS in both modern and legacy bundles. (#9985)
Not including SockJS in the modern JS bundle was a nice bundle size
savings (28KB before gzip), but SockJS works better than a native
WebSocket for clients that are stuck in unusual networking situations, and
the fallback of using dynamic import() to load SockJS when the native
WebSocket failed was much slower than simply including SockJS in the
bundle and using it from the start.

Moreover, the new `meteor create --minimal` starter app does not use
socket-stream-client (nor DDP), so going back to including SockJS in both
the modern and the legacy bundles should have no impact on the minimal
modern bundle size.

If you want to continue using a native WebSocket instead of SockJS, you
can always pin the older version of the socket-stream-client package:

  meteor add socket-stream-client@0.2.1
2018-06-12 17:30:01 -04:00
..

socket-stream-client

Source code of released version | Source code of development version


This package provides the ClientStream abstraction used by the ddp-client package.