API reference / @chanx-js/server / crossws / chanxHooks
Function: chanxHooks()
ts
function chanxHooks(chanx): Partial<Hooks>;Defined in: packages/server/src/adapters/crossws.ts:16
crossws hooks serving chanx: one adapter for Bun, Deno, Cloudflare Workers and Node, and for frameworks built on crossws (h3, Nitro, Nuxt). Upgrades for paths no consumer serves are refused with 404.
Parameters
| Parameter | Type |
|---|---|
chanx | Chanx |
Returns
Partial<Hooks>