Narcissistic Pickle Meister

    @tradle/iot-message

    3.0.0 • Public • Published

    @tradle/iot-message

    Usage

    const { encode, decode } = require('@tradle/iot-message')
    encode({
      payload: { some: 'json' },
      encoding: 'gzip' // default
    })
    .then(buf => decode(buf))
    // send buf
    // ..
    // receive buf
    .then(buf => console.log(JSON.parse(buf)))
    // { some: 'json' }

    Keywords

    Install

    npm i @tradle/iot-message

    DownloadsWeekly Downloads

    2

    Version

    3.0.0

    License

    MIT

    Last publish

    Collaborators

    • leichtgewicht
    • genevayngrib
    • tenaciousmv
    • pgmemk