Sha256: 5a75602fcb5f507990a91414a4cfa62c13f8c78a23d77412d7e6dae10d6fdbfd

Contents?: true

Size: 694 Bytes

Versions: 9

Compression:

Stored size: 694 Bytes

Contents

var fs = require ('fs');
var net = require('net');
var join = require('path').join;
var file = join(__dirname, 'fixtures','all_npm.json');
var it = require('it-is');
var JSONStream = require('../');

var str = fs.readFileSync(file);

var server = net.createServer(function(client) {
    var data_calls = 0;
    var parser = JSONStream.parse();
    parser.on('error', function(err) {
        console.log(err);
        server.close();
    });

    parser.on('end', function() {
        console.log('END');
        server.close();
    });
    client.pipe(parser);
});
server.listen(9999);

var client = net.connect({ port : 9999 }, function() {
    var msgs = str + '}';
    client.end(msgs);
});

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
pcp-server-ruby-sdk-0.0.6 node_modules/JSONStream/test/multiple_objects_error.js
pcp-server-ruby-sdk-0.1.0 node_modules/JSONStream/test/multiple_objects_error.js
minimum_viable_product-0.0.11 test/dummy/node_modules/JSONStream/test/multiple_objects_error.js
brwy_rails-0.0.6 test/dummy/node_modules/JSONStream/test/multiple_objects_error.js
brwy_rails-0.0.5 test/dummy/node_modules/JSONStream/test/multiple_objects_error.js
brwy_rails-0.0.4 test/dummy/node_modules/JSONStream/test/multiple_objects_error.js
brwy_rails-0.0.3 test/dummy/node_modules/JSONStream/test/multiple_objects_error.js
brwy_rails-0.0.2 test/dummy/node_modules/JSONStream/test/multiple_objects_error.js
brwy_rails-0.0.1 test/dummy/node_modules/JSONStream/test/multiple_objects_error.js