v4.6.0: Upgrades to WebSocket architecture, aligned with other SDKs
What's Changed
- Upgrades to WebSocket architecture, aligned with other SDKs by @tiagosiebler in #533
The WebSocket client architecture saw many improvements with the newer SDKs. This PR cleans up some of the tech debt, bringing this in line with the other SDKs. Less differences -> easier long-term maintainability:
- Bump audit dependencies
- Add wsUrl & WS ref to open & reconnected events
- Normalise internal emittable event structure handling via safer getFinalEmittable normaliser
- Add authPrivateConnectionsOnConnect mechanic
- Normalise internal logger category, optional WS API Auth flag
- Normalise internal WS behaviour flags
- Add internal requireConnectionReady & useNativeHeartbeats flags
- Integrate custom reconnection hook mechanic.
Full Changelog: v4.5.3...v4.6.0