Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

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

Constructors

new
default(token: string, client: Client)

Properties

private
heartbeat: any
private
heartbeatInt: number
private
receivedAck: boolean
private
sequence: any
private
sessionID: string
private
status: string
lastPingTimestamp: number
ping: number
sock: WebSocket

Methods

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