{"action":"created","issue":{"url":"https://api.github.com/repos/primus/substream/issues/10","labels_url":"https://api.github.com/repos/primus/substream/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/primus/substream/issues/10/comments","events_url":"https://api.github.com/repos/primus/substream/issues/10/events","html_url":"https://github.com/primus/substream/issues/10","id":82806301,"number":10,"title":"Substreams cannot write from server to client if using binary parser","user":{"login":"bodjkin","id":2971043,"avatar_url":"https://avatars.githubusercontent.com/u/2971043?v=3","gravatar_id":"","url":"https://api.github.com/users/bodjkin","html_url":"https://github.com/bodjkin","followers_url":"https://api.github.com/users/bodjkin/followers","following_url":"https://api.github.com/users/bodjkin/following{/other_user}","gists_url":"https://api.github.com/users/bodjkin/gists{/gist_id}","starred_url":"https://api.github.com/users/bodjkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bodjkin/subscriptions","organizations_url":"https://api.github.com/users/bodjkin/orgs","repos_url":"https://api.github.com/users/bodjkin/repos","events_url":"https://api.github.com/users/bodjkin/events{/privacy}","received_events_url":"https://api.github.com/users/bodjkin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-30T12:53:24Z","updated_at":"2015-06-01T05:45:02Z","closed_at":null,"body":"Easy to replicate with a slight modification to the example code:\r\n\r\n```javascript\r\nprimus = new Primus(server, {\r\n  transformer: 'engine.io',\r\n  parser: 'binary', // <- added to example\r\n});\r\n\r\nprimus.use('substream', require('../'));\r\n\r\n// stuff...\r\n\r\nvar foo = spark.substream('foo');\r\nfoo.on('data', function(data) {\r\n  console.log('foo received:', data, ++count, spark.id);\r\n\r\n  // Not received on the client, no errors on server, just quietly eats data\r\n  foo.write('Curse your sudden but inevitable betrayal');\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/primus/substream/issues/comments/107315624","html_url":"https://github.com/primus/substream/issues/10#issuecomment-107315624","issue_url":"https://api.github.com/repos/primus/substream/issues/10","id":107315624,"user":{"login":"lpinca","id":1443911,"avatar_url":"https://avatars.githubusercontent.com/u/1443911?v=3","gravatar_id":"","url":"https://api.github.com/users/lpinca","html_url":"https://github.com/lpinca","followers_url":"https://api.github.com/users/lpinca/followers","following_url":"https://api.github.com/users/lpinca/following{/other_user}","gists_url":"https://api.github.com/users/lpinca/gists{/gist_id}","starred_url":"https://api.github.com/users/lpinca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpinca/subscriptions","organizations_url":"https://api.github.com/users/lpinca/orgs","repos_url":"https://api.github.com/users/lpinca/repos","events_url":"https://api.github.com/users/lpinca/events{/privacy}","received_events_url":"https://api.github.com/users/lpinca/received_events","type":"User","site_admin":false},"created_at":"2015-06-01T05:45:02Z","updated_at":"2015-06-01T05:45:02Z","body":"@bodjkin no, leave this open until the issue is fixed.\r\n\r\nI was referring to the fact that there is another way to fix this without patching `node-binarypack`."}}