Skip to content

InlineWebSocketHandlers

Defined in: src/context.ts:19

Inline WebSocket handlers for ctx.upgrade()

T = any

Property Type Defined in

close?

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

src/context.ts:22

error?

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

src/context.ts:23

message?

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

src/context.ts:21

open?

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

src/context.ts:20