           sockets.push socket
           socket.on "close", =>
             sockets.splice sockets.indexOf(socket), 1
-        
+
         stopServer = =>
           if (!stoped)
             sockets.forEach (socket) =>

    @server()

  server: ->
    app = connect()
    @middleware().forEach (middleware) ->
      app.use middleware
    if opt.https?

            process.nextTick( ->
              process.exit(0);
            )

        process.on("SIGINT", stopServer);
        process.on("exit", stopServer);

        if opt.livereload
          tiny_lr.Server::error = ->
          if opt.https?
