Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions examples/client/simple-publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ const mqtt = require('../..')
const client = mqtt.connect()

client.publish('presence', 'hello!')
// note: for a binary message from the browser you can pass a Uint8Array

client.end()
Loading