Hono does not have a WebSocket context function like c.ws() by default.
Because websocket implementations vary considerably from runtime to runtime.
Since Hono DO is a library specialized for cloudflare workers, we thought it would be easier to use if we extended context to provide a handler for websocket.
Hono does not have a WebSocket context function like
c.ws()
by default. Because websocket implementations vary considerably from runtime to runtime.Since
Hono DO
is a library specialized for cloudflare workers, we thought it would be easier to use if we extended context to provide a handler for websocket.