Commit eb814e46 by Иван Кубота

proper log

parent b3a631b4
......@@ -25,7 +25,7 @@
<script>
window.logging = function(who, what) {
D.div({renderTo: document.getElementById('logger')}, `id: ${who}, msg: ${JSON.stringify(what)}`);
D.div({renderTo: document.getElementById('logger')}, `to: ${who}, msg: ${JSON.stringify(what)}`);
};
var rgbToHex = function (rgb) {
var hex = Number(rgb).toString(16);
......
......@@ -222,7 +222,7 @@ export class VideoInputApp {
webCam: store.get('webcam'+this.___id)
};
if(window['logging'])
window['logging'](this.mCall['mNetwork']['mLocalStream'] && this.mCall['mNetwork']['mLocalStream'].mInstanceId, sendingObj)
window['logging'](messageArgs.ConnectionId, sendingObj)
this.mCall.Send(JSON.stringify(sendingObj), messageArgs.Reliable, messageArgs.ConnectionId);
/* this.mCall.SendData(JSON.stringify({
userId: store.get('userRole'+this.___id),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment