+
Skip to content

statiohq/funk.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

funk.js

🔌 NodeJS Library for interacting with Funk - Statio's Realtime Service

About this library

This Library is used for interacting with Funk - the realtime backend that powers Statio. Please note that this backend is not currently not intended to be used within products outside of Statio and no support is offered for outside use.

Usage

Creating a client

import { Funk } from "funk.js";

const funk = new Funk();

Subscribing to events

funk.on("fullData", (data) => {
    console.log("Full data received for " + data.length + " stations");
});

funk.on("stationChanged", (station) => {
    console.log("Station change received for #" + station.id + " (" + station.listening + " listeners)");
});

About

🔌 NodeJS Library for interacting with Funk - Statio's Realtime Service

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载