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

could you expose internal APIs of WebSocket such as WebsocketFrameSend to user? #52885

Open
navegador5 opened this issue May 8, 2024 · 3 comments
Labels
feature request Issues that request new features to be added to Node.js.

Comments

@navegador5
Copy link

navegador5 commented May 8, 2024

What is the problem this feature will solve?

expose more APIs of websocket module:

const value = Buffer.from(data);
const frame = new WebsocketFrameSend(value);
const buffer = frame.createFrame(opcodes.BINARY);

What is the feature you are proposing to solve the problem?

expose more APIs of websocket module:

const value = Buffer.from(data);
const frame = new WebsocketFrameSend(value);
const buffer = frame.createFrame(opcodes.BINARY);

What alternatives have you considered?

No response

@navegador5 navegador5 added the feature request Issues that request new features to be added to Node.js. label May 8, 2024
@fahrradflucht
Copy link
Contributor

Can you explain your use case in more detail?

@RedYetiDev
Copy link
Member

As @fahrradflucht said, for a feature to be added to Node.js, there needs to be a use case, do you have one?

Thank you!

@navegador5
Copy link
Author

in one of my project:
the equipment(work as websocket client, most of them using nodejs) need to send msg(short but frequentlty) to some upstream-servers .
unfortunately, the upstream-servers NOT under our control. and some of them NOT obey the standard-websocket-protocol(they do a private implement), so need the client to send some specical low-level ws-frame to them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Issues that request new features to be added to Node.js.
Projects
Status: Pending Triage
Development

No branches or pull requests

3 participants