{"action":"created","issue":{"url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/599","labels_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/599/labels{/name}","comments_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/599/comments","events_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/599/events","html_url":"https://github.com/Reactive-Extensions/RxJS/issues/599","id":58588919,"number":599,"title":"Multiple arguments from event are truncated","user":{"login":"sirreal","id":841763,"avatar_url":"https://avatars.githubusercontent.com/u/841763?v=3","gravatar_id":"","url":"https://api.github.com/users/sirreal","html_url":"https://github.com/sirreal","followers_url":"https://api.github.com/users/sirreal/followers","following_url":"https://api.github.com/users/sirreal/following{/other_user}","gists_url":"https://api.github.com/users/sirreal/gists{/gist_id}","starred_url":"https://api.github.com/users/sirreal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirreal/subscriptions","organizations_url":"https://api.github.com/users/sirreal/orgs","repos_url":"https://api.github.com/users/sirreal/repos","events_url":"https://api.github.com/users/sirreal/events{/privacy}","received_events_url":"https://api.github.com/users/sirreal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-23T14:02:20Z","updated_at":"2015-02-23T17:58:35Z","closed_at":"2015-02-23T17:58:35Z","body":"The current behavior of Rx seems to be truncating the arguments emitted by an event:\r\n\r\n```js\r\nvar Rx = require('rx');\r\nvar events = require('events');\r\n\r\nvar e = new events.EventEmitter();\r\n\r\nfunction bar() {\r\n  console.log(arguments);\r\n}\r\n\r\ne.on('foo', bar);                                  // { '0': 'a', '1': 'b' }\r\nRx.Observable.fromEvent(e, 'foo').subscribe(bar);  // { '0': 'a' }\r\nRx.Node.fromEvent(e, 'foo').subscribe(bar);        // { '0': 'a' }\r\n\r\ne.emit('foo', 'a', 'b');\r\n```\r\n\r\nThis trivial example isn't really a problem, as I can change what is emitted by my event.\r\nHowever, you're not always in controll of the event emitter. \r\nFor example, `dgram.Socket` [Event: 'message'](http://nodejs.org/api/all.html#all_event_message) emits multiple-argument events:\r\n\r\n```js\r\nvar dgram = require('dgram');\r\nvar Rx = require('rx');\r\n\r\nfunction log() { console.log(arguments); }\r\n\r\nvar s = dgram.createSocket('udp4');\r\n\r\ns.bind({ port: 9876 });\r\n\r\ns.on('message', log);                                  // { '0': <Buffer 31>,\r\n                                                       //   '1': { address: '127.0.0.1', family: 'IPv4', port: 9876, size: 1 } }\r\nRx.Observable.fromEvent(s, 'message').subscribe(log);  // { '0': <Buffer 31> }\r\nRx.Node.fromEvent(s, 'message').subscribe(log);        // { '0': <Buffer 31> }\r\n\r\ns.send('1', 0, '1'.length, 9876, 'localhost');\r\n```\r\n\r\nThis makes it more complicated to observe some events.\r\n\r\nRelated to #69. "},"comment":{"url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/comments/75595476","html_url":"https://github.com/Reactive-Extensions/RxJS/issues/599#issuecomment-75595476","issue_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/599","id":75595476,"user":{"login":"sirreal","id":841763,"avatar_url":"https://avatars.githubusercontent.com/u/841763?v=3","gravatar_id":"","url":"https://api.github.com/users/sirreal","html_url":"https://github.com/sirreal","followers_url":"https://api.github.com/users/sirreal/followers","following_url":"https://api.github.com/users/sirreal/following{/other_user}","gists_url":"https://api.github.com/users/sirreal/gists{/gist_id}","starred_url":"https://api.github.com/users/sirreal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirreal/subscriptions","organizations_url":"https://api.github.com/users/sirreal/orgs","repos_url":"https://api.github.com/users/sirreal/repos","events_url":"https://api.github.com/users/sirreal/events{/privacy}","received_events_url":"https://api.github.com/users/sirreal/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T17:58:35Z","updated_at":"2015-02-23T17:58:35Z","body":"I just expected it to pass all args by default. It's clear in the docs. Apologies."}}