Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/coward/src/network/gateway/WebsocketHandler.ts>default

🐔 Coward is a Deno module for easy interaction with the Discord API.
Go to Latest
class default
import { default } from "https://deno.land/x/coward@v0.1.0/src/network/gateway/WebsocketHandler.ts";

Constructors

new
default(token: string, client: Client)

Properties

private
receivedAck: boolean
private
sequence: any
private
sessionID: string
private
status: string
sock: WebSocket

Methods

private
close()
private
handleWSMessage(message: any)
private
heartbeat(int: any)
private
identify()
private
onClose(message: any)
connect(): Promise<void>
modifyPresence(settings: any)