How to use snappystream - 2 common examples

To help you get started, we’ve selected a few snappystream examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dudleycarr / nsqjs / lib / nsqdconnection.js View on Github external
startSnappy () {
    const { SnappyStream, UnsnappyStream } = require('snappystream')

    this.inflater = new UnsnappyStream()
    this.deflater = new SnappyStream()
    this.reconsumeFrameBuffer()
  }
github dudleycarr / nsqjs / lib / nsqdconnection.js View on Github external
startSnappy () {
    const { SnappyStream, UnsnappyStream } = require('snappystream')

    this.inflater = new UnsnappyStream()
    this.deflater = new SnappyStream()
    this.reconsumeFrameBuffer()
  }

snappystream

Framed Snappy streams

MIT
Latest version published 1 year ago

Package Health Score

51 / 100
Full package analysis