       retry: 5
       endpoints: {}
 
+  # Connect to faye
   @faye: (callback) =>
     if @fayeClient?
       callback(@fayeClient)

        @debugMessage 'faye already inited'
        @connectToFaye()
  
  @fayeExtension:
    incoming : (message, callback) =>
      @debugMessage "incomming message #{message}"

        message.ext.danthes_signature = subscription.signature
        message.ext.danthes_timestamp = subscription.timestamp
      callback(message)
  
  # Initialize Faye client
  @connectToFaye: ->
    if @server && Faye?
      @debugMessage 'trying to connect faye'
