Skip to content

andrewlively/jscent2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jscent2

JS (TS) Client for Centrifugo.

Built with TypeScript and Axios

Example usage

import JSCent from "jscent2";

const jsCentClient = new JSCent({
  url: "CENTRIFUGE_SERVER_URL",
  token: "CENTRIGURE_API_TOKEN"
});

await jsCentClient.publish(
  "public", // Channel name
  { // Data to publish to channel
    text: "Hello, World!"
  }
);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published