Example #1
0
        public void SendAnswer(string connectionId, RTCSessionDescription answer)
        {
            DescData data = new DescData();

            data.connectionId = connectionId;
            data.sdp          = answer.sdp;
            data.type         = "answer";

            FurioosRoutedMessage <DescData> routedMessage = new FurioosRoutedMessage <DescData>();

            routedMessage.to      = connectionId;
            routedMessage.message = data;

            WSSend(routedMessage);
        }
Example #2
0
        public void SendCandidate(string connectionId, RTCIceCandidate candidate)
        {
            CandidateData data = new CandidateData();

            data.connectionId  = connectionId;
            data.candidate     = candidate.candidate;
            data.sdpMLineIndex = candidate.sdpMLineIndex;
            data.sdpMid        = candidate.sdpMid;

            FurioosRoutedMessage <CandidateData> routedMessage = new FurioosRoutedMessage <CandidateData>();

            routedMessage.to      = connectionId;
            routedMessage.message = data;

            WSSend(routedMessage);
        }