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

docs: update `websocket.md` #2593

Closed iiio2 closed 2 months ago

iiio2 commented 2 months ago

๐Ÿ”— Linked issue

โ“ Type of change

๐Ÿ“š Description

๐Ÿ“ Checklist

pi0 commented 2 months ago

thanks for pr. chaining is possible

iiio2 commented 2 months ago

@pi0 , thanks a lot. You said about chaining. I think that is .then() or .catch() stuffs. but in the code it is just returning $fetch("url"). There is no chaining I think. just want to know.

pi0 commented 2 months ago

H3 handler itself awaits on whar we return (which is a promise, retuen value of $fetch)

iiio2 commented 2 months ago

I see. Thanks @pi0 .