         @emitter.trigger 'module.initialize', { }
 
     removePeer   : (peerId) =>
-        console.log @peers[peerId]
         do @peers[peerId].dc.close
         if @peers[peerId].mc?
             do @peers[peerId].mc.close

        return @conn.peer

    onOpen      : () =>

    onData      : (data) =>
        @emitter.trigger data.type, data.params

            for peer in data.peers
                @pjs.connect peer.id
        @emitter.on 'peer.dataconnection', (event, data) =>
            uid = do data.dc.peer
            if !@peers[uid]?
                @peers[uid] = {}
            @peers[uid].dc = data.dc
        @emitter.on 'peer.mediaconnection', (event, data) =>
            uid = do data.mc.peer
            if !@peers[uid]?
                @peers[uid] = {}
            @peers[uid].mc = data.mc
        @emitter.on 'peer.streamstate', (event, data) =>
            @sendStreamState data.id
        @emitter.on 'peer.remove', (event, data) =>
            if @peers[data.id]?
                @removePeer data.id
