@hmbanan666/chat-game-api
v0.1.18
Published
Chat Game API: all communication with Server in one place
Downloads
2
Readme
chat-game-api
Chat Game API: all communication with Server in one place
How to use
npm i @hmbanan666/chat-game-api
Import from lib. Init it as a new class, provide Bearer Token. Use available typed methods.
import { ChatGameAPI } from '@hmbanan666/chat-game-api'
const server = new ChatGameAPI('<your token>')
const test = await server.method()
if (test instanceof Error) {
// Some error
}
Changelog
See CHANGELOG.md