H
Hono6mo ago
mathys

Websockets

Am I missing something I got this error and I don't found how to fix it with the doc (screenshot from hono node module) I also checked if my setup was correct and it was like this (screenshot where we see initsocket())
No description
No description
9 Replies
mathys
mathys6mo ago
Here is my socket init
No description
mathys
mathys6mo ago
And when trying to connect with postman I just can't
No description
Nico
Nico6mo ago
Sorry this is late. I opened an issue for this today if you want to see what’s causing it. The only fix right now is in bun serve only do fetch: app.fetch do not return the fetch. If you are trying to get the ip from Bun as of right now there is no way around this
Nico
Nico6mo ago
GitHub
WebSockets In Bun · Issue #2696 · honojs/hono
What version of Hono are you using? 4.3.7 What runtime/platform is your app running on? Bun What steps can reproduce the bug? If you Bun.serve and return app.fetch() it will not allow Bun to switch...
Nico
Nico5mo ago
@mathys this has been fixed in the latest version of Hono. There is now a helper to get an ip address to fix this issue
mathys
mathys5mo ago
as the doc being updated didn't saw this on the website
Nico
Nico5mo ago
ConnInfo Helper - Hono
Ultrafast web framework for Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, Node.js, and others. Fast, but not only fast.
Nico
Nico5mo ago
I will update the bun specific part where it shows the old way
mathys
mathys5mo ago
tks again
Want results from more Discord servers?
Add your server