 
         # control if we need to fire a pauseRender event
         @domChanged = true
-
-        # Sockets that have connected before the browser has loaded its first page.
-        @queuedSockets = []
 
         # Indicates whether the browser has loaded its first page.
         @browserInitialized = false


        socket.on 'disconnect', () =>
            @sockets       = (s for s in @sockets       when s != socket)
            @queuedSockets = (s for s in @queuedSockets when s != socket)
            @emit('disconnect', address)
            if not (@sockets.length or @queuedSockets.length)
                @emit 'NoClients'

        socket.emit('SetConfig', @_clientEngineConfig)

        if !@browserInitialized
            return @queuedSockets.push(socket)
        # the socket is added after the first pageloaded event emitted
        nodes = serialize(@browser.window.document,
                          @resources,

    close : () ->
        return if @closed
        @closed = true
        socket.disconnect() for socket in @sockets
        socket.removeAllListeners for socket in @sockets
        @compressor.removeAllListeners()
        @sockets = []
        @browser.close()
        @browser = null
        @emit('BrowserClose')
