Skip to content

Instantly share code, notes, and snippets.

@stmpjmpr
stmpjmpr / pn-mqtt.js
Last active June 16, 2020 00:39
Calling PubNub via MQTT Bridge with JavaScript
import mqtt from "mqtt";
const publishKey = '<your_publish_key>';
const subscribeKey = '<your_subscribe_key>';
const clientId = 'pn-mqtt';
const topic = 'pubnub_mqtt_test';
const options = {
clientId: `${publishKey}/${subscribeKey}/${clientId}`
@stmpjmpr
stmpjmpr / keybase.md
Created June 12, 2014 22:24
keybase.md

Keybase proof

I hereby claim:

  • I am stmpjmpr on github.
  • I am hill (https://keybase.io/hill) on keybase.
  • I have a public key whose fingerprint is E0A0 1D51 95F8 A74D 0286 A1B5 4941 52DE 903A 7476

To claim this, I am signing this object: