Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(websocket): Add serializer/deserializer config settings (#3489)
- Fixes the build for latest TypeScript - Adds a `serializer` and `deserializer` config setting that defaults to JSON serialization both in and out of the socket - deprecates the `resultSelector` (use `deserializer` instead) BREAKING CHANGE: WebSocketSubject will now JSON serialize all messages sent over it by default, to return to the old behavior, pass a config setting of `serializer: x => x` like so: `websocket({ url, serializer: x => x })`
- Loading branch information