Skip to content

InlineWebSocketHandlers

Defined in: src/context.ts:20

Inline WebSocket handlers for ctx.upgrade()

T extends Record<string, any> = any

Property Type Defined in

close?

(ctx, ws, code?, reason?) => void | Promise<void>

src/context.ts:23

error?

(ctx, ws, error) => void | Promise<void>

src/context.ts:24

message?

(ctx, ws, message) => void | Promise<void>

src/context.ts:22

open?

(ctx, ws) => void | Promise<void>

src/context.ts:21