Socket
Book a DemoInstallSign in
Socket

pokeaclient

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pokeaclient

A client library for [PokeAByte](https://github.com/PokeAByte/PokeAByte) writte from scratch to allow for a permissive license, since the default client PokeAByte provides falls under the AGPL which may not suite every project.

0.5.0
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

PokeAClient

A client library for PokeAByte writte from scratch to allow for a permissive license, since the default client PokeAByte provides falls under the AGPL which may not suite every project.

Usage

import { PokeAClient } from "pokeaclient";

var client = new PokeAClient({
	onMapperChange: handleMapperChange,
	onConnectionChange: handleConnectionChange,
	onPropertiesChanged: handlePropertiesChanged, // for multiple property updates at once.
	onPropertyChange: handlePropertyChange, // handle individual updates.

});
client.connect();

The callbacks do not provide the full information each time they are invoked. Their signatures are:

interface PokeAClientCallbacks {
    onPropertyChange?: ((propertyPath: string) => void);
    onMapperChange?: (() => void);
    onConnectionChange?: ((connected: boolean) => void);
    onConnect?: (() => void);
    onDisconnect?: (() => void);
}

When notified by onMapperChange for instance, you will have to retrieve the mapper state and glossary data yourself via PokeAClient.getMapper and PokeAClient.getGlossary. And game properties can be accessed via PokeAClient.getProperty(path).

FAQs

Package last updated on 09 Jul 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.