 #
 # Server Side
 #
-
 log = require './log'
 sessionTimeOut = 30 * 60 * 1000 # 30 minutes
 tag = 'rpc'

###

parser = require('body-parser')

Channel = require('./sse').Channel

if typeof Promise is 'undefined' then Promise = require './promise'

    app.use parser.json limit:options.limit or '512kb'
    app.use (err, req, res, next) -> log err.stack; next err
    server = new classServer classes, options.timeOut
    ( (Class) -> 
      log "listening on class #{Class}"
      app.post "/#{Class}", (req, res) -> server.process Class, req.body, res
    ) Class for Class of classes
#
# Add SSE Support
#
