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