Chat Game API: all communication with Server in one place
npm install @hmbanan666/chat-game-apiChat Game API: all communication with Server in one place
``shell`
npm i @hmbanan666/chat-game-api
Import from lib. Init it as a new class, provide Bearer Token. Use available typed methods.
`ts
import { ChatGameAPI } from '@hmbanan666/chat-game-api'
const server = new ChatGameAPI('
const test = await server.method()
if (test instanceof Error) {
// Some error
}
``
See CHANGELOG.md