simple-publish.js 121 B

1234567
  1. 'use strict'
  2. var mqtt = require('../..')
  3. var client = mqtt.connect()
  4. client.publish('presence', 'hello!')
  5. client.end()