resume-client-socket.io
Version:
Resume Client API for Socket.IO and Node.JS - Medical Speech to Summarized Text
24 lines (17 loc) • 526 B
Markdown
by hand with a special streaming interface.
This is used in js-git to inflate git object fragments in a pack-stream.
```js
var onInput = inflateStream(onEmit, onUnused);
someStream.on("data", function (chunk) {
onInput(null, chunk);
});
function onEmit(err, out) {
if (err) throw err;
// out is a chunk of inflated data
}
function onUnused(chunks) {
// chunks is an array of extra buffers or buffer slices.
}
```
This module implements zlib inflate