We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, the send method is async and resolves when the message was sent or rejects if the message couldn't be sent.
send
Except when using WebSocket with the browser API because it doesn't expose a way to know the message was sent, they are simply queued.
Instead we could make send queue messages. It could also be used in conjunction with stream management.
Node.js and other JavaScript runtimes now implement globalThis.WebSocket and removing ws dependency would be nice to have as well.
globalThis.WebSocket
ws
Reconsider also sendMany
sendMany
The text was updated successfully, but these errors were encountered:
I just realized this is a thing now https://developer.mozilla.org/en-US/docs/Web/API/WebSocketStream
write returns a promise so we could adopt that and keep send as is.
write
Sorry, something went wrong.
No branches or pull requests
Currently, the
send
method is async and resolves when the message was sent or rejects if the message couldn't be sent.Except when using WebSocket with the browser API because it doesn't expose a way to know the message was sent, they are simply queued.
Instead we could make
send
queue messages. It could also be used in conjunction with stream management.Node.js and other JavaScript runtimes now implement
globalThis.WebSocket
and removingws
dependency would be nice to have as well.Reconsider also
sendMany
The text was updated successfully, but these errors were encountered: