Browse Source

Adds extra logging.

j8
George Politis 10 years ago
parent
commit
ed57f72117
2 changed files with 4 additions and 1 deletions
  1. 2
    1
      libs/app.bundle.js
  2. 2
    0
      modules/RTC/DataChannels.js

+ 2
- 1
libs/app.bundle.js View File

482
         _dataChannels.some(function (dataChannel) {
482
         _dataChannels.some(function (dataChannel) {
483
             if (dataChannel.readyState == 'open')
483
             if (dataChannel.readyState == 'open')
484
             {
484
             {
485
+                console.log('sending data channel notification that the selected endpoint changed: ', userResource);
485
                 dataChannel.send(JSON.stringify({
486
                 dataChannel.send(JSON.stringify({
486
                     'colibriClass': 'SelectedEndpointChangedEvent',
487
                     'colibriClass': 'SelectedEndpointChangedEvent',
487
                     'selectedEndpoint':
488
                     'selectedEndpoint':
25311
 }
25312
 }
25312
 
25313
 
25313
 },{}]},{},[1])(1)
25314
 },{}]},{},[1])(1)
25314
-});
25315
+});

+ 2
- 0
modules/RTC/DataChannels.js View File

194
         _dataChannels.some(function (dataChannel) {
194
         _dataChannels.some(function (dataChannel) {
195
             if (dataChannel.readyState == 'open')
195
             if (dataChannel.readyState == 'open')
196
             {
196
             {
197
+                console.log('sending selected endpoint changed ' 
198
+                    + 'notification to the bridge: ', userResource);
197
                 dataChannel.send(JSON.stringify({
199
                 dataChannel.send(JSON.stringify({
198
                     'colibriClass': 'SelectedEndpointChangedEvent',
200
                     'colibriClass': 'SelectedEndpointChangedEvent',
199
                     'selectedEndpoint':
201
                     'selectedEndpoint':

Loading…
Cancel
Save