     client_bundled.content = minify client_bundled()
     socketjs.content = minify socketjs()
 
-  if io?
+  do ->
     zappa_prefix = app.settings.zappa_prefix
     context.get zappa_prefix+'/socket/:channel_name/:socket_id', ->
       if @session?

            id: socket_id
            key: key

          # Update the Socket.IO store
          io_client = io.sockets.store.client(socket_id)
          io_data = JSON.stringify
            id: @req.sessionID
            key: key
          io_client.set socketio_key, io_data

          # Let the client know which key to use.
          @json channel_name: channel_name, key: key
      else
        @json error:'No session'
      return


vendor_module = (module,args...) ->
  fs.readFileSync (path.join (path.dirname require.resolve module), args...), 'utf-8'

# Soft dependencies:
uglify = null
