Skip to main content
Module

x/aleph/std.ts>ws.acceptable

The Full-stack Framework in Deno.
Very Popular
Go to Latest
function ws.acceptable
import { ws } from "https://deno.land/x/aleph@v0.2.28/std.ts";
const { acceptable } = ws;

Return whether given headers is acceptable for websocket

Parameters

req: { headers: Headers; }

Returns

boolean