Module

x/hono/helper/websocket/index.ts>WSEvents

Web Framework built on Web Standards
Extremely Popular
Latest
interface WSEvents
import { type WSEvents } from "https://dotland.deno.dev/x/hono@v4.3.11/helper/websocket/index.ts";

WebSocket Event Listeners type

Properties

optional
onOpen: (evt: Event, ws: WSContext) => void
optional
onMessage: (evt: MessageEvent<WSMessageReceive>, ws: WSContext) => void
optional
onClose: (evt: CloseEvent, ws: WSContext) => void
optional
onError: (evt: Event, ws: WSContext) => void