Dank-del / easy-push-ts-client

Typescript Client SDK for easy-push

Home Page:https://www.npmjs.com/package/@easy-push/ts-client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

easy-push typescript client SDK

Installation

npm install --save @easy-push/ts-client

Usage

import EasyPushClient from '@easy-push/ts-client';

const client = new EasyPushClient("https://easy-push-api.sayanbiswas.in", "meow", "uwu");
const channel = client.getChannel(5);

client.subscribeToChannel(5, (message) => {
    console.log(message);
});

About

Typescript Client SDK for easy-push

https://www.npmjs.com/package/@easy-push/ts-client

License:MIT License


Languages

Language:TypeScript 100.0%