Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
bitFlyer Realtime API sample code
var script = document.createElement('script');
script.src='https://cdn.pubnub.com/sdk/javascript/pubnub.4.20.1.min.js';
script.onload = function() {
var pubnub = new PubNub({
subscribeKey: "sub-c-52a9ab50-291b-11e5-baaa-0619f8945a4f",
publishKey: "nopublishkey",
ssl: true
})
pubnub.addListener({
message: function(m) {
console.log(m);
},
presence: function(p) {
console.log(p);
},
status: function(s) {
console.log(s);
}
});
pubnub.subscribe({
channels: ['lightning_executions_FX_BTC_JPY']
});
};
document.body.appendChild(script);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment