crossws icon indicating copy to clipboard operation
crossws copied to clipboard

Utility to create proxy hooks

Open pi0 opened this issue 1 year ago • 1 comments

Describe the feature

Context: https://github.com/nitrojs/nitro/issues/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.

pi0 avatar Nov 15 '24 19:11 pi0

graphql needs it too much, I'm stuck today

productdevbook avatar May 22 '25 11:05 productdevbook