npm install @kirishima/ws ws @sapphire/async-queue
- Written in TypeScript
- Support ESM & CommonJS
import { Gateway } from "@kirishima/ws";
(async () => {
const lavalinkSocket = new Gateway("ws://lava.link:80")
.setClientId("12345678901234")
.setClientName("@kirishima/ws lavalink websocket implementation")
.setAuthorization("youshallnotpass")
lavalinkSocket.on("open", () => {
console.log("Lavalink connected !")
})
await lavalinkSocket.connect();
})()