Skip to content

Commit

Permalink
docs(websocket/bun): add ServerWebSocket (#480)
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe authored Sep 11, 2024
1 parent 135693d commit 92a6f0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/helpers/websocket.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<ServerWebSocket>()

// ...

Expand Down

0 comments on commit 92a6f0f

Please sign in to comment.