Skip to content

Commit

Permalink
docs(websocket/bun): add ServerWebSocket
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe committed Sep 11, 2024
1 parent d223aca commit cb360e0
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 cb360e0

Please sign in to comment.