Closed Blankeos closed 2 months ago
hi @Blankeos it works in my enviroment. (Ubuntu latest)
Linux? Windows? Mac? Other?
Please try to upgrade Bun
On a mac, I tried a minimal example as well. It actually worked lol. Thanks for the quick reply @EdamAme-x !
The issue was actually because of Vite Custom Dev Server. Was using @hono/vite-dev-server
. Basically I think the HMR from Vite (uses ws under the hood), conflicts with the WS that I have in the same origin.
In any case, I fixed this by using concurrently
and just running two servers during development:
Works out pretty fine actually.
Then in prod, I just reuse them back into a single server with a couple of if statements. :D
Let me know if you have other suggestions though. I might just be missing something. Will close the ticket if there's no other solutions besides the workaround. Thanks for the help!
What version of Hono are you using?
4.4.7
What runtime/platform is your app running on?
Bun
What steps can reproduce the bug?
Bun createBunWebSocket Hono error:
Code:
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response