Skip to main content
Deno 2 is finally 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.27/std.ts";
const { acceptable } = ws;

Return whether given headers is acceptable for websocket

Parameters

req: { headers: Headers; }

Returns

boolean