             if !@peers[do data.dc.peer]?
                 @peers[do data.dc.peer] = {}
             @peers[do data.dc.peer].dc = data.dc
-            # @sendStreamState do data.dc.peer
+            @sendStreamState do data.dc.peer
         @emitter.on 'peer.mediaconnection', (event, data) =>
             if !@peers[do data.mc.peer]?
                 @peers[do data.mc.peer] = {}

            message = { type : 'chat.message' , params : { message : data } }
        for id, peer of @peers
            @send id, message
    
    sendToOneName : (event, msg) =>
        message = { type : msg.type, params : msg.params }
        userId = @getIdFromUsername msg.to

            uid     : @call.peer
        @emitter.trigger 'stream.create', data

    sendStream   : (stream) =>
        @call.answer stream

    onClose     : () =>

    close       : () =>
        do @call.close

class Connections
    constructor : (@emitter, @uid, @rid, @wsPortal, @pjsPortal) ->
