     @symphony.createDatafeed()
       .then (response) =>
         @robot.logger.info "Created datafeed: #{response.id}"
+        @emit 'connected'
         this.on 'poll', () =>
           @robot.logger.debug "Polling datafeed #{response.id}"
           @symphony.readDatafeed(response.id)

#    limitations under the License.
#

{Adapter} = require 'hubot'
Symphony = require './symphony'
{V2Message} = require './message'


              @emit 'poll', response.id
            .fail (err) =>
              @robot.emit 'error', new Error("Unable to read datafeed #{response.id}: #{err}")
        @emit 'poll'
      .fail (err) =>
        @robot.emit 'error', new Error("Unable to create datafeed: #{err}")
