Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upProperty 'read' of object #<Socket> is not a function #55
Comments
This comment has been minimized.
This comment has been minimized.
|
just use fs.createReadStream("./file.txt", {flags: 'r'})
.pipe(es.split('\n'))
.pipe(process.stdout)instead of
|
This comment has been minimized.
This comment has been minimized.
giacecco
commented
Apr 12, 2014
|
That works, but why didn't it work the other way? |
giacecco
closed this
Apr 12, 2014
This comment has been minimized.
This comment has been minimized.
|
Something to do with |
This comment has been minimized.
This comment has been minimized.
|
heh, you must be using an old version of event-stream anyway! look at this: https://github.com/dominictarr/event-stream/blob/master/index.js#L301-L303 |
This comment has been minimized.
This comment has been minimized.
giacecco
commented
Apr 13, 2014
|
Actually, that pattern is in the very first example in the docs! https://github.com/dominictarr/event-stream/blob/master/readme.markdown |
This comment has been minimized.
This comment has been minimized.
|
oh my! I'm glad no body does that! |
This comment has been minimized.
This comment has been minimized.
giacecco
commented
Apr 13, 2014
|
Thanks :-) On 13 Apr 2014, at 11:34, Dominic Tarr notifications@github.com wrote:
|
giacecco commentedApr 11, 2014
The simple script below fails reading a text file with one JavaScript object per line. Why?
Some sample content from the input file is below:
The error is:
I am using node v0.10.26. Thanks,
Giacecco