std@0.95.0/ws/mod.ts

Deno standard library
GitHub Stars
2260
Go to Latest

isWebSocketCloseEvent

import { isWebSocketCloseEvent } from "https://deno.land/std@0.95.0/ws/mod.ts";

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

function isWebSocketCloseEvent(a: WebSocketEvent): a is WebSocketCloseEvent;