-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webSocket docs are contradictory #7309
Comments
You are mixing text in sections for websocketsubject and multiplex operator's. |
I don't know the distinction you're making. You should probably clarify the docs. I can't seem to reopen this issue. |
@skelly-energid is right, the docs for
rxjs/packages/rxjs/src/internal/observable/dom/webSocket.ts Lines 30 to 33 in c666574
rxjs/packages/rxjs/src/internal/observable/dom/WebSocketSubject.ts Lines 109 to 113 in c666574
So the WebSocketSubject returned by |
Describe the bug
https://rxjs.dev/api/webSocket/webSocket contains this text:
" next sends a value to the server, so bear in mind that this value will not be serialized beforehand. Because of This, JSON.stringify will have to be called on a value by hand, before calling next with a result."
It also contains this text:
"Note that both messages will be sent as returned by the functions, they are by default serialized using JSON.stringify, just as messages pushed via next."
This is a contradiction.
I'm new to RxJs, but as far as I know, the first claim in the docs is wrong.
Expected behavior
Correct docs
Reproduction code
No response
Reproduction URL
No response
Version
latest
Environment
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: