/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-import-974fc5cc4f52-import-s0707-c0000.md

Import - hono-docs

Import Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt import Summary ::: code group ts [Cloudfla...

Import

Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#import

Summary

::: code-group ts [Cloudflare Workers] import { Hono } from 'hono' import { upgradeWebSocket } from 'hono/cloudflare-workers' ts [Deno] import { Hono } from 'hono' import { upgradeWebSocket } from 'hono/deno' ```ts [Bun] im...

Content

::: code-group

import { Hono } from 'hono'
import { upgradeWebSocket } from 'hono/cloudflare-workers'
import { Hono } from 'hono'
import { upgradeWebSocket } from 'hono/deno'
import { Hono } from 'hono'
import { upgradeWebSocket, websocket } from 'hono/bun'

// ...

export default {
  fetch: app.fetch,
  websocket,
}
import { serve, upgradeWebSocket } from '@hono/node-server'
import { Hono } from 'hono'
import { WebSocketServer } from 'ws'

:::

On Node.js, WebSocket support is built into @hono/node-server. To enable it, install ws and, if you use TypeScript, @types/ws. Then create a WebSocketServer with { noServer: true } and pass it to serve() via the websocket option.

@hono/node-ws is deprecated.

Kinic Wiki
Loading knowledge node
Details

Identity

database
db_23dhmsxlhukv
database_id
db_23dhmsxlhukv
path
/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-import-974fc5cc4f52-import-s0707-c0000.md
kind
directory
role
markdown_note
children
0

Metadata

created_at
virtual
updated_at
virtual
etag
virtual
metadata_json
{}

Lint Hints

No lightweight warnings.

Outgoing Links

No outgoing links indexed.

Incoming Links

Select a file node to inspect backlinks.

Raw Source

No raw source path inferred.