         for own name, func of RPCMethods
             do (name, func) =>
                 socket.on name, () =>
-                    console.log("Got: #{name}")
-                    console.log(arguments)
+                    #console.log("Got: #{name}")
+                    #console.log(arguments)
                     # We always process newSymbol because resumeRendering will
                     # be compressed if compression is enabled.
                     if name == 'newSymbol'

        console.log("newSymbol: #{original} -> #{compressed}")
        @compressor.register(original, compressed)
        @socket.on compressed, () =>
            console.log("Got: #{original} [compressed]")
            console.log(arguments)
            #TODO: factor this out with setupRPC above
            # This way resumeRendering actually can be called.
            if original == 'resumeRendering'

    PageLoaded : (snapshot) ->
        console.log('loadFromSnapshot')
        console.log(snapshot)
        doc = @document
        while doc.hasChildNodes()
            doc.removeChild(doc.firstChild)
        @nodes = new TaggedNodeCollection()
        delete doc.__nodeID
        @nodes.add(doc, 'node1')
        @compressor = new Compressor()
        for own original, compressed of snapshot.compressionTable
            RPCMethods['newSymbol'].call(this, original, compressed)
