Attempt to connect client to server stream

Fails with Uncaught TypeError: Function.prototype.apply: Arguments list has wrong type bundle.js:25586
(anonymous function) bundle.js:25586
stream.write bundle.js:16076
ondata bundle.js:8033
EventEmitter.emit bundle.js:4204
reemit bundle.js:25525
EventEmitter.emit bundle.js:4204
drain bundle.js:25385
stream.queue.stream.push bundle.js:25391
exports.parse.parser.onValue bundle.js:24840
proto.emit bundle.js:25273
proto.onToken bundle.js:25285
exports.parse.parser.onToken bundle.js:24847
proto.write bundle.js:25086
(anonymous function) bundle.js:24792
stream.write bundle.js:25375
ondata bundle.js:8033
EventEmitter.emit bundle.js:4226
RtcDataStream.onMessage

in emit-stream:
exports.fromStream = function (s) {
    var ev = new EventEmitter;

    s.pipe(through(function (args) {
        ev.emit.apply(ev, args); // <-- Arguments list has wrong type (args="ready", expected array)
    }));

    return ev;
};