       ))
 
   _sendMessage: (message) ->
-    console.log("send: " + message['type'])
     @_sendValue('sendMessage',
       userID: String(@_remoteUserID)
       message: message

            @_onCandidate(event)

  _addNetworkEventListener: ->
    window.addEventListener('offline', (event) =>
      @_webSocket.close()
    )

  _startHeartbeat: ->

class @WebRTC
  onWebSocketConnected: ->
  onWebSocketReconnectingStarted: ->
  onWebSocketReConnected: ->
  onWebRTCConnected: ->
  onWebRTCReconnectingStarted: ->
  onWebRTCReconnected: ->
  onWebRTCHangedUp: ->

  constructor: (userToken, @localOutput, @remoteOutput) ->
    @localOutput = @localOutput[0] || @localOutput
