-
-
Save brycebaril/ba67491d6468f28f836b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var terminus = require("terminus") | |
var bops = require("bops") | |
var varint = require("varint") | |
var stream = terminus.tail(function (piece) { | |
console.log("got: " + piece.toString()) | |
}) | |
// works | |
stream.write(Buffer(varint.encode(1254))) | |
// doesn't work | |
stream.write(bops.create(varint.encode(1254))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment