@paqujs/ws
v1.2.3
Published
@paqujs/ws
Downloads
34
Maintainers
Readme
@paqujs/ws
WS module for Paqu.js
Installation
Node.js 16.x or higher is required.
npm install @paqujs/ws
yarn add @paqujs/ws
pnpm add @paqujs/ws
Usage
import { WebSocketManager } from '@paqujs/ws';
const ws = new WebSocketManager({ intents: ['Guilds'] });
ws.on('ready', (user) => {
console.log(`Logged in as ${user.username}#${user.discriminator}`);
});
ws.connect('your-super-secret-token');
Optional Dependencies
- zlib-sync for faster WebSocket data (de)compression
- erlpack for faster WebSocket data (de)serialisation