telehash-stream

0.0.4 • Public • Published

telesocket

Adding stream support to telehash-js channels, also implements the sock extension.

Usage

var self = new require("telehash-js").switch();
require("telehash-stream").install(self);

// on any channel created outgoing or received incoming do this to get a full read/write binary stream for that channel
var stream = chan.wrap("stream");

TODO: add a high level friendly self.stream("hashname") style api

/telehash-stream/

    Package Sidebar

    Install

    npm i telehash-stream

    Weekly Downloads

    5

    Version

    0.0.4

    License

    MIT

    Last publish

    Collaborators

    • quartzjer