unjs / h3

⚡️ Minimal H(TTP) framework built for high performance and portability
https://h3.unjs.io/
MIT License
3.69k stars 219 forks source link

Compatibility crossws <> h3 #909

Open fabianwohlfart opened 2 weeks ago

fabianwohlfart commented 2 weeks ago

Describe the feature

It would be great to pass a crossws peer.request or something similar to h3 functions like getRequestIp(event) and it works. At the moment I am running in a lot of "[something] is missing" or "[something] does not exist errors", which is hard to entangle for me. I am aware that we are in the progress of updating Nitro and all the other libraries. Maybe understand this more as a note to also check against such things. Thanks for your work!

Additional information

Caesarovich commented 1 week ago

Would be a huge improvement ! I'm looking forward to be able to use h3 sessions to authenticate peers.