diff --git a/docs/helpers/websocket.md b/docs/helpers/websocket.md index ec4bc23a..ca084513 100644 --- a/docs/helpers/websocket.md +++ b/docs/helpers/websocket.md @@ -20,8 +20,10 @@ import { upgradeWebSocket } from 'hono/deno' ```ts [Bun] import { Hono } from 'hono' import { createBunWebSocket } from 'hono/bun' +import type { ServerWebSocket } from 'bun' -const { upgradeWebSocket, websocket } = createBunWebSocket() +const { upgradeWebSocket, websocket } = + createBunWebSocket() // ...