mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
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
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.