     @setupLocalVideo()
     @initCapturingPluginEvents()
     @checkPluginVersion() if @options.capturingRequired
+    if WebRTC.debug
+      WebRTC.clients ||= {}
+      WebRTC.clients[@guid] = @
+
 
   setupLocalVideo: ->
     WebRTC.getUserMedia @options.media, ((stream)=> @handleLocalStreem(stream)), ((error)=> WebRTC.log(error))

    @connection.createAnswer ((answer) =>
      @connection.setLocalDescription new WebRTC.RTCSessionDescription(answer)
      @syncEngine.sendAnswer @guid, answer
    ), ->

  handleAnswer: (answer) ->
    @receivedSignals['answer'] = answer

        break

  _sendData: (signal, data, to = null)->
    WebRTC.log("Signal [#{signal}] sended", data)
    @faye.publish(@roomUrl, {from_guid: @client.guid, to_guid: to, signal_type: signal, data: JSON.stringify(data)})


