 
         @server.on "close", () ->
             console.log "[ratom] stop server"
+
         @server.listen port, 'localhost'
 
     stop_server: ->


    close: ->
        @nconn -= 1
        console.log @nconn
        if @alive and @nconn == 0
            @online = false
            @send "close"
            @send ""
            @socket.end()

        socket.on "data", (chunk) =>
            @parse_chunk(chunk)
        socket.on "close", =>
            if @alive
                @alive = false
                console.log "[ratom] connection lost!"
                status-message.display "Connection lost!", 5000

    parse_chunk: (chunk) ->
        if chunk
