From 92a6f0fa46051a53d36c3124cee19e1f8a06c8a3 Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Wed, 11 Sep 2024 14:33:53 +0900 Subject: [PATCH] docs(websocket/bun): add `ServerWebSocket` (#480) --- docs/helpers/websocket.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() // ...