unjs / nitro

Next Generation Server Toolkit. Create web servers with everything you need and deploy them wherever you prefer.
https://nitro.unjs.io
MIT License
5.89k stars 496 forks source link

Provide a way to terminate websocket connections #2667

Closed ms0ur closed 1 month ago

ms0ur commented 1 month ago

Describe the feature

The crossws library (which is used for ws connections in h3) provides a way to terminate ws connections, but Nitro currently does not support this functionality. Could you please add support for terminating ws connections in Nitro?

Additional information

pi0 commented 1 month ago

It will be supported as soon as crossws is released and updated for nitro.