Skip to main content
Module

x/cordeno/deps.ts>connectWebSocket

🦕 A Discord API wrapper for developing discord bots using the Deno runtime.
Go to Latest
function connectWebSocket
import { connectWebSocket } from "https://deno.land/x/cordeno@v0.3.1/deps.ts";

Connect to given websocket endpoint url. Endpoint must be acceptable for URL.

Parameters

endpoint: string
optional
headers: Headers = [UNSUPPORTED]