{"action":"created","issue":{"url":"https://api.github.com/repos/JSBizon/node-memorystream/issues/12","labels_url":"https://api.github.com/repos/JSBizon/node-memorystream/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/JSBizon/node-memorystream/issues/12/comments","events_url":"https://api.github.com/repos/JSBizon/node-memorystream/issues/12/events","html_url":"https://github.com/JSBizon/node-memorystream/issues/12","id":59702915,"number":12,"title":"Basic I/O Operation working as intended?","user":{"login":"r0b5t4","id":56912,"avatar_url":"https://avatars.githubusercontent.com/u/56912?v=3","gravatar_id":"","url":"https://api.github.com/users/r0b5t4","html_url":"https://github.com/r0b5t4","followers_url":"https://api.github.com/users/r0b5t4/followers","following_url":"https://api.github.com/users/r0b5t4/following{/other_user}","gists_url":"https://api.github.com/users/r0b5t4/gists{/gist_id}","starred_url":"https://api.github.com/users/r0b5t4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r0b5t4/subscriptions","organizations_url":"https://api.github.com/users/r0b5t4/orgs","repos_url":"https://api.github.com/users/r0b5t4/repos","events_url":"https://api.github.com/users/r0b5t4/events{/privacy}","received_events_url":"https://api.github.com/users/r0b5t4/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JSBizon/node-memorystream/labels/bug","name":"bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-03T20:46:48Z","updated_at":"2015-03-04T19:50:40Z","closed_at":null,"body":"Running the \"Basic I/O Operation\" from https://www.npmjs.com/package/memorystream the output is \"World!\". Is this intended? The chunk \"Hello\" passed to the initialization of the memory stream is not emitted on \"data\". Thanks for clarification. \r\n\r\n    var MemoryStream = require('memorystream');\r\n    var memStream = new MemoryStream(['Hello',' ']);\r\n    \r\n    var data = '';\r\n    memStream.on('data', function(chunk) {\r\n        data += chunk.toString();\r\n    });\r\n    \r\n    memStream.write('World');\r\n    \r\n    memStream.on('end', function() {\r\n        // outputs 'Hello World!'\r\n        console.log(data);\r\n    });\r\n    memStream.end('!');"},"comment":{"url":"https://api.github.com/repos/JSBizon/node-memorystream/issues/comments/77232463","html_url":"https://github.com/JSBizon/node-memorystream/issues/12#issuecomment-77232463","issue_url":"https://api.github.com/repos/JSBizon/node-memorystream/issues/12","id":77232463,"user":{"login":"JSBizon","id":894344,"avatar_url":"https://avatars.githubusercontent.com/u/894344?v=3","gravatar_id":"","url":"https://api.github.com/users/JSBizon","html_url":"https://github.com/JSBizon","followers_url":"https://api.github.com/users/JSBizon/followers","following_url":"https://api.github.com/users/JSBizon/following{/other_user}","gists_url":"https://api.github.com/users/JSBizon/gists{/gist_id}","starred_url":"https://api.github.com/users/JSBizon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JSBizon/subscriptions","organizations_url":"https://api.github.com/users/JSBizon/orgs","repos_url":"https://api.github.com/users/JSBizon/repos","events_url":"https://api.github.com/users/JSBizon/events{/privacy}","received_events_url":"https://api.github.com/users/JSBizon/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T19:50:40Z","updated_at":"2015-03-04T19:50:40Z","body":"Do you want option for hold data for duplex stream too? I can implement it while will fix bug :)"}}