import { type WSEvents } from "https://deno.land/x/hono@v4.2.1/helper/websocket/index.ts";
WebSocket Event Listeners type
Properties
optional
onOpen: (evt: Event, ws: WSContext) => voidoptional
onMessage: (evt: MessageEvent<WSMessageReceive>, ws: WSContext) => voidoptional
onClose: (evt: CloseEvent, ws: WSContext) => voidoptional
onError: (evt: Event, ws: WSContext) => void