     else
       @lastSentDoc = docName
 
-	#console.warn 'c->s', data
+    #console.warn 'c->s', data
     data = JSON.stringify(data) if useSockJS?
     @socket.send data
 

  # Types must be supported by the server.
  # callback(error, doc)
  open: (docName, type, callback) ->

    return callback 'connection closed' if @state is 'stopped'

    # Wait for the connection to open

  Doc = require('./doc').Doc

class Connection
  constructor: (host) ->
    # Map of docname -> doc
    @docs = {}
