New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

blacket-sdk

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blacket-sdk

An API wrapper for https://blacket.org/ written in TypeScript, attempting providing 1:1 implementation of the API by v1.0.0

latest
npmnpm
Version
0.0.12-alpha
Version published
Weekly downloads
12
1100%
Maintainers
1
Weekly downloads
 
Created
Source

blacket-sdk

An API wrapper for https://blacket.org/ written in TypeScript, attempting providing 1:1 implementation of the API by v1.0.0

Installation

npm install blacket-sdk

Usage

import { Client, getToken } from 'blacket-sdk';

const client = new Client({
    token: await getToken("zastix", "password"),
    // Whether to reconnect to the WebSocket when disconnected
    reconnect: true
});

client.on(SocketEvents.OPEN, (c) => {
    console.log(`Logged in as ${c.user.username} (${c.user.id})`);

    const room = c.roomManager.getOrCreateRoom(0, "global");

    await room.send("Hello, world!");
});

Documentation

The documentation can be found here, we are actively working to improve our documentation!

made with ❤️ by zastix

Keywords

blacket

FAQs

Package last updated on 27 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts