Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
function isWebSocketCloseEvent
import { isWebSocketCloseEvent } from "https://deno.land/x/rsocket@0.3.0/deps.ts";

Returns true if input value is a WebSocketCloseEvent, false otherwise.

Parameters

a: WebSocketEvent

Returns

a is WebSocketCloseEvent