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

x/lavadeno/deps.ts>pogsockets.closeSocket

lavadeno is a simple, easy-to-use, and flexible lavalink client built on the Deno Runtime.
Latest
function pogsockets.closeSocket
Re-export
import { pogsockets } from "https://deno.land/x/lavadeno@3.3.0/deps.ts";
const { closeSocket } = pogsockets;

Closes the provided pogsocket with a code and/or reason.

Parameters

socket: PogSocket

pogsocket to clsoe

optional
code = [UNSUPPORTED]

The close code

optional
reason: string

The close reason.