Blast API
Allows you to use global 'serverless' events in JavaScript (Node or Web)
Installation
npm i blast-api
Use
(Check test.js
file)
First, import Blast lib
const Blast =
Then, init the client
Using an username and a password OR just an unique app token :
const client = username: 'username_test' // as you want password: 'password_test' // as you want // OR app: 'XXXXXXXXXXXXXX' // as you want url: 'https://your-blast-server/' // (Optional) Default server is mine
Listen to an event
client
Emit examples
client // => "It Works" client // => "It Works OMG" client // => Object {message: "It works", reaction: "OMG"}
Problems
If you have errors in console or unwanted behavior please create an issue here.