/Knowledge/sources/honojs__hono/llms-full/getting-started-adapter--9037171f9f69.md
Getting Started: Adapter - hono-docs
Getting Started: Adapter Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt adapter Summary There are Ada...
Getting Started: Adapter
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#adapter
Summary
There are Adapters for platform-dependent functions, e.g., handling static files or WebSocket. For example, to handle WebSocket in Cloudflare Workers, import hono/cloudflare-workers. ```ts import { upgradeWebSocket } from 'hono/cloudfl...
Content
There are Adapters for platform-dependent functions, e.g., handling static files or WebSocket.
For example, to handle WebSocket in Cloudflare Workers, import hono/cloudflare-workers.
import { upgradeWebSocket } from 'hono/cloudflare-workers'
app.get(
'/ws',
upgradeWebSocket((c) => {
// ...
})
)
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#adapter",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / Getting Started > Adapter",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 523,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "Getting Started: Adapter",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}