Skip to main content
Module

x/aleph/std.ts>ws.acceptable

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

Return whether given headers is acceptable for websocket

Parameters

req: { headers: Headers; }

Returns

boolean