var Stream = require('stream').Stream;

function EngineStream(socket) {
    var stream = new Stream();
    stream.readable = stream.writable = true;

    socket.on("error", stream.emit.bind(stream, "error"))
    socket.on("open", stream.emit.bind(stream, "connect"))
    socket.on("close", stream.emit.bind(stream, "close"))

    // forward data
    socket.on("message", stream.emit.bind(stream, "data"))

    // forwarding write
    stream.write = socket.write.bind(socket)

    return stream
}

module.exports = EngineStream


@@ -469,16 +469,124 @@
 ocket)%0A%0A
+    // circular of request so it can be parsed for cookies, etc.%0A    stream.req = socket.transport.request%0A%0A
     retu

Update eiostream.js