Skip to main content
The Deno 2 Release Candidate is here
Learn more
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.5/std.ts";
const { acceptable } = ws;

Return whether given headers is acceptable for websocket

Parameters

req: { headers: Headers; }

Returns

boolean