Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/pogsocket/websocket/mod.ts>acceptable

🌐 deno websocket client
Latest
function acceptable
import { acceptable } from "https://deno.land/x/pogsocket@2.0.0/websocket/mod.ts";

Returns true if input headers are usable for WebSocket, otherwise false.

Parameters

req: { headers: Headers; }

Returns

boolean