Replies: 1 comment
-
Already learned how it worked. Turns out the answer is in the post I made haha. Websockets, conceptually are just two things:
So for those two steps:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to figure out how to do Hono +. tRPC subscriptions + Bun.
Closest thing I could find with TRPC + Bun's websocket handling is: https://github.com/cah4a/trpc-bun-adapter.
I could pretty much just use the
websocket
object coming from this library and put it intoBun.serve
, but I have some Hono Context (request headers) and (response headers) that I would've wanted to pass onto my subscriptions.Thanks for the help in advance!
Beta Was this translation helpful? Give feedback.
All reactions