Closed imLymei closed 1 month ago
Hi @imLymei
If I remember correctly, Cloudflare Workers does not support the open
. For instance, the open
is not listed the below doc:
https://developers.cloudflare.com/workers/runtime-apis/websockets/#events
Hey @naporin0624 Is it right?
Well, that sucks. Thank you for clarifying things up!
What version of Hono are you using?
4.6.3
What runtime/platform is your app running on?
Cloudflare Workers
What steps can reproduce the bug?
The
onOpen
websocket event is not calledsteps:
npm create hono@4.6.3
const websocketClients: WebSocket[] = [];
const app = new Hono();
app.get( '/ws', upgradeWebSocket((c) => { console.log('WebSocket upgrade requested');
}) );
export default app;