Changes:
- Updated and pinned
aws-signature-v4@1.2.1
- Updated and pinned
mqtt@2.18.2
- Added ability to connect to a local broker without signed url to support https://github.com/tradle/serverless-iot-local project
- API change: import modules like this now:
const AWSMqttClient = require('aws-mqtt')
in browserconst NodeClient = require('aws-mqtt/lib/NodeClient')
in Node.jsconst publishMessage = require('aws-mqtt/lib/publishMessage')
in Node.js for one off message publishing
- Pulled WebSocketStreamfrom from
mqtt-websocket-stream
repo to this repo - Added CloudFormation template for testing/example infrastructure
- Added added browser tests with puppeteer and node tests
- Better connection error diagnostics (e.g. 403 errors are not ignored)
- Extracted
expires
as an option