{"following":true,"channel":{"id":000,...usual channel object}}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var WsabiClient = require('wsabi-client-bacon'); | |
var mcBoard = [ | |
[ | |
{ | |
key: 'Replace Item', | |
cost: 50 | |
//cooldown: 5 * 1000 | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Client = require('wsabi-client-bacon'); | |
var client = new Client("wss://realtime.beam.pro"); | |
client.socket.on("open", function () { | |
console.log("Socket connection open!"); | |
// Send requests to the server with get, put, post, delete, or request. | |
client.get("/api/v1/channels/Youplay").then(function(res) { | |
// Subscribe to a live event | |
client.live('channel:'+res.id+':update').then(function(res) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Beam = require('beam-client-node'); | |
const Tetris = require('beam-interactive-node'); | |
const stream = 1234; | |
const username = 'connor'; | |
const password = 'password'; | |
const beam = new Beam(); | |
beam.use('password', { | |
username, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Beam = require('beam-client-node'); | |
var Tetris = require('beam-interactive-node'); | |
const readline = require('readline'); | |
var stream = <channelID>; | |
var auth = { | |
username: 'username', | |
password:'passs' | |
}; | |
const rl = readline.createInterface({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var WsabiClient = require('wsabi-client-bacon'); | |
var wsabi = new WsabiClient('https://beam.pro'); | |
wsabi.liveUrl = '/api/v1/live'; | |
wsabi.socket.on('open', doIt); | |
function login(username, password) { | |
console.log('login'); | |
return wsabi.post('/api/v1/users/login', {username, password}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print(' '.join(hex(x)[2:] for x in 'hello world!')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Packets = require('beam-interactive-node/dist/robot/packets').default; | |
robot.send(new Packets.ProgressUpdate( | |
tactile: [new Packets.ProgressUpdate.TactileUpdate({ | |
id: <id>, | |
cooldown: <cooldown>, | |
fired: <fired>, | |
progress: <progress> | |
})]); |
OlderNewer