How to perform an async operation in Web Socket's onMessage?
I'm using Web Sockets with Bun, and wondering what's the idiomatic Hono-way of awaiting a Promise in onMessage (which is a sync method)?
I tried to use setTimeout and Promise.then(), but their callbacks are never executed.
1 Reply
i think you could do something like this