class ServerSocket
extends EventEmitter
import { ServerSocket } from "https://deno.land/x/ptereno@v1.0.1/lib/models/ServerSocket.ts";
Constructors
Properties
private
optional
intents: Array<SocketIntentType>private
ws: WebSocketMethods
private
sendAuth(token?: string)Authorizes the connection with the websocket.
If no token is passed, a new token will be automatically fetched.
private
sendIntents()Sends intents through the websocket indicating what events the user chooses to capture.
import { type ServerSocket } from "https://deno.land/x/ptereno@v1.0.1/lib/models/ServerSocket.ts";