Skip to content
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

idea: support for Node WebStream / websocketstream? #2261

Closed
1 task done
seriousme opened this issue Nov 4, 2024 · 2 comments
Closed
1 task done

idea: support for Node WebStream / websocketstream? #2261

seriousme opened this issue Nov 4, 2024 · 2 comments

Comments

@seriousme
Copy link

Is there an existing issue for this?

  • I've searched for any related issues and avoided creating a duplicate issue.

Description

Hi,

As I understand it ws currently only supports 'classical' NodeJS streams.
As NodeJS is also supporting webstreams I was wondering if ws could support those too?
This could align with the WebSocketStream API already supported by Chrome and Deno.

Kind regards,
Hans

ws version

No response

Node.js Version

No response

System

No response

Expected result

No response

Actual result

No response

Attachments

No response

@lpinca
Copy link
Member

lpinca commented Nov 7, 2024

As NodeJS is also supporting webstreams I was wondering if ws could support those too?

There are utilities to convert Node.js streams to Web Streams. There is no plan to support a slower alternative directly. There is also no plan to add support for the WebSocketStream API. undici already supports it.

@seriousme
Copy link
Author

Many thanks for the answer.

Kind regards,
Hans

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants