lib/rocky.js
function Rocky (opts) {
  if (!(this instanceof Rocky)) return new Rocky(opts)
  opts = opts || {}
  Base.call(this, opts)

  this.server = null
  this.router = router(opts.router)
  this._setupMiddleware()
}
function Rocky (opts) {
  if (!(this instanceof Rocky)) return new Rocky(opts)
  opts = opts || {}
  Base.call(this, opts)

  this.server = null
  this.router = router(opts.router)
  this._setupMiddleware()
}
function Rocky ( opts ) { if ( ! ( this instanceof Rocky ) ) return new Rocky ( opts ) opts = opts || { } Base . call ( this , opts ) this . server = null this . router = router ( opts . router ) this . _setupMiddleware ( ) }
Rocky implements an HTTP and WebSocket proxy with built-in router
and hierarchical middleware layer.

@param {Object} opts
@class Rocky
@extend Base
@constructor
Rocky implements an HTTP and WebSocket proxy with built - in router and hierarchical middleware layer .