 fs            = require 'fs'
 net           = require 'net'
 crypto        = require 'crypto'
+path          = require 'path'
 Sequent       = require 'sequent'
 qs            = require 'querystring'
 

        console.log "metadata re-sent"

      for rtmpMessage in msgs
        session.lastTimestamp[rtmpMessage.avType] = rtmpMessage.timestamp = session.offsetTimestamp[rtmpMessage.avType] + session.getScaledTimestamp(rtmpMessage.originalTimestamp) % TIMESTAMP_ROUNDOFF 

      if msgs.length > 1
        buf = createRTMPAggregateMessage msgs, session.chunkSize


module.exports = RTMPServer
module.exports.streams = streams
