You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current Behavior
When an error is thrown/encountered in the function provided as the "serializer" in the WebsocketSubjectConfig object, this error gets silently swallowed and then the websocket connection fails.
Reproduction
Here is a stackblitz repro, except I didn't have a public websocket to test with. If you have any recommendations I'd gladly update the repro. https://stackblitz.com/edit/angular-ivy-hxp2ht
Expected behavior
The error should make its way back to the error subscription.
Environment
Node v12.16.1
RxJS version: 6.5.5
Angular: 9.1.3
Possible Solution
Unknown
The text was updated successfully, but these errors were encountered:
In any case, you could always provide 1->1 custom serializer to the config and serialize the message before hand. What I do in those cases is for example:
Bug Report
Current Behavior
When an error is thrown/encountered in the function provided as the "serializer" in the WebsocketSubjectConfig object, this error gets silently swallowed and then the websocket connection fails.
Reproduction
Here is a stackblitz repro, except I didn't have a public websocket to test with. If you have any recommendations I'd gladly update the repro.
https://stackblitz.com/edit/angular-ivy-hxp2ht
Expected behavior
The error should make its way back to the error subscription.
Environment
Possible Solution
Unknown
The text was updated successfully, but these errors were encountered: