{"action":"created","issue":{"url":"https://api.github.com/repos/kawanet/msgpack-lite/issues/31","repository_url":"https://api.github.com/repos/kawanet/msgpack-lite","labels_url":"https://api.github.com/repos/kawanet/msgpack-lite/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/kawanet/msgpack-lite/issues/31/comments","events_url":"https://api.github.com/repos/kawanet/msgpack-lite/issues/31/events","html_url":"https://github.com/kawanet/msgpack-lite/issues/31","id":143358909,"number":31,"title":"reading from a messagepack stream","user":{"login":"tony-garcia","id":216728,"avatar_url":"https://avatars.githubusercontent.com/u/216728?v=3","gravatar_id":"","url":"https://api.github.com/users/tony-garcia","html_url":"https://github.com/tony-garcia","followers_url":"https://api.github.com/users/tony-garcia/followers","following_url":"https://api.github.com/users/tony-garcia/following{/other_user}","gists_url":"https://api.github.com/users/tony-garcia/gists{/gist_id}","starred_url":"https://api.github.com/users/tony-garcia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tony-garcia/subscriptions","organizations_url":"https://api.github.com/users/tony-garcia/orgs","repos_url":"https://api.github.com/users/tony-garcia/repos","events_url":"https://api.github.com/users/tony-garcia/events{/privacy}","received_events_url":"https://api.github.com/users/tony-garcia/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-03-24T21:03:39Z","updated_at":"2016-03-28T23:11:39Z","closed_at":"2016-03-25T15:44:04Z","body":"Hello,\r\nI'm trying to use msgpack-lite to read from a messagepack stream and I'm using the code straight out of the examples, but I'm getting 'msgpack.createDecodeStream is not a function'. Did the API change? What is the correct way to read from a messagpack stream? Thanks."},"comment":{"url":"https://api.github.com/repos/kawanet/msgpack-lite/issues/comments/202619784","html_url":"https://github.com/kawanet/msgpack-lite/issues/31#issuecomment-202619784","issue_url":"https://api.github.com/repos/kawanet/msgpack-lite/issues/31","id":202619784,"user":{"login":"kawanet","id":9765,"avatar_url":"https://avatars.githubusercontent.com/u/9765?v=3","gravatar_id":"","url":"https://api.github.com/users/kawanet","html_url":"https://github.com/kawanet","followers_url":"https://api.github.com/users/kawanet/followers","following_url":"https://api.github.com/users/kawanet/following{/other_user}","gists_url":"https://api.github.com/users/kawanet/gists{/gist_id}","starred_url":"https://api.github.com/users/kawanet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kawanet/subscriptions","organizations_url":"https://api.github.com/users/kawanet/orgs","repos_url":"https://api.github.com/users/kawanet/repos","events_url":"https://api.github.com/users/kawanet/events{/privacy}","received_events_url":"https://api.github.com/users/kawanet/received_events","type":"User","site_admin":false},"created_at":"2016-03-28T23:11:39Z","updated_at":"2016-03-28T23:11:39Z","body":"```js\r\nvar decoder = new msgpack.Decoder();\r\ndecoder.on(\"data\", chunk => {\r\n    // read values from message and do whatever\r\n});\r\ndecoder.decode(msg.content);\r\ndecoder.end();\r\n```\r\n\r\nOR \r\n\r\n```js\r\nvar decoder = new msgpack.Decoder();\r\ndecoder.on(\"data\", chunk => {\r\n    // read values from message and do whatever\r\n});\r\ndecoder.end(msg.content); // end immediately\r\n```\r\n"}}