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

Utility to create proxy hooks #93

Open
pi0 opened this issue Nov 15, 2024 · 0 comments
Open

Utility to create proxy hooks #93

pi0 opened this issue Nov 15, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@pi0
Copy link
Member

pi0 commented Nov 15, 2024

Describe the feature

Context: nitrojs/nitro#2886

A new createWebSocketProxy({ target: 'ws://external-url' }) would allow users (and frameworks) to create runtime-agnostic hooks that proxy connections to a remote backend.

Implementation details depend on CrossWS hooks and we might benefit from some native runtime-aware possibilities also (mainly to speed up or allow platform-specific protocols for example) therefore CrossWS core itself is probably the best place to develop and maintain this utility.

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

No branches or pull requests

1 participant