{"action":"created","issue":{"url":"https://api.github.com/repos/QuickBlox/quickblox-javascript-sdk/issues/125","repository_url":"https://api.github.com/repos/QuickBlox/quickblox-javascript-sdk","labels_url":"https://api.github.com/repos/QuickBlox/quickblox-javascript-sdk/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/QuickBlox/quickblox-javascript-sdk/issues/125/comments","events_url":"https://api.github.com/repos/QuickBlox/quickblox-javascript-sdk/issues/125/events","html_url":"https://github.com/QuickBlox/quickblox-javascript-sdk/issues/125","id":145017964,"number":125,"title":"QuickBlox Video Chat Demo Sample: \"this.socket is undefined\" after calling start call","user":{"login":"Sirsendu786","id":18198348,"avatar_url":"https://avatars.githubusercontent.com/u/18198348?v=3","gravatar_id":"","url":"https://api.github.com/users/Sirsendu786","html_url":"https://github.com/Sirsendu786","followers_url":"https://api.github.com/users/Sirsendu786/followers","following_url":"https://api.github.com/users/Sirsendu786/following{/other_user}","gists_url":"https://api.github.com/users/Sirsendu786/gists{/gist_id}","starred_url":"https://api.github.com/users/Sirsendu786/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sirsendu786/subscriptions","organizations_url":"https://api.github.com/users/Sirsendu786/orgs","repos_url":"https://api.github.com/users/Sirsendu786/repos","events_url":"https://api.github.com/users/Sirsendu786/events{/privacy}","received_events_url":"https://api.github.com/users/Sirsendu786/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-31T21:02:44Z","updated_at":"2016-03-31T21:17:44Z","closed_at":null,"body":"I am getting \"**this.socket is undefined**\" error  in QuickBlox Video Chat Demo Sample. It's works fine when I run it locally (from local file system) but if I integrate it to a ASP.NET MVC application which running on local IIS Espress (Visual Studio 2015) I am getting below error in Firefox console window the moment I click on \"Start Call\" and accept to share audio/video deviec media:\r\n\r\n> this.socket is undefined QB.js:8111:0\r\n> [QBWebRTC]: _dialingCallback, answerTimeInterval: 5000 QB.js:1620:32\r\n> TypeError: this.socket is undefined\r\n>  QB.js:8111:175\r\n> [QBWebRTC]: _dialingCallback, answerTimeInterval: 10000 QB.js:1620:32\r\n> TypeError: this.socket is undefined\r\n>  QB.js:8111:175\r\n> [QBWebRTC]: _dialingCallback, answerTimeInterval: 15000 QB.js:1620:32\r\n> TypeError: this.socket is undefined\r\n>  QB.js:8111:175\r\n> [QBWebRTC]: _dialingCallback, answerTimeInterval: 20000 QB.js:1620:32\r\n> TypeError: this.socket is undefined\r\n>  QB.js:8111:175\r\n> [QBWebRTC]: _dialingCallback, answerTimeInterval: 25000 QB.js:1620:32\r\n> TypeError: this.socket is undefined\r\n\r\nHere \"QB.JS\" is a unminified version of QuickBlox JS SDK. I did it, so that can get to know which code block in JS SDK throwing the error and it happens to be the below code block\r\n\r\n```\r\n                           _onIdle: function() {\r\n                                var b = this._conn._data;\r\n                                if (b.length > 0 && !this._conn.paused) {\r\n                                    for (var c = 0; c < b.length; c++)\r\n                                        if (null !== b[c]) {\r\n                                            var d, e;\r\n                                            d = \"restart\" === b[c] ? this._buildStream().tree() : b[c], e = a.serialize(d), this._conn.xmlOutput(d), this._conn.rawOutput(e), this.socket.send(e)\r\n                                        }\r\n                                    this._conn._data = []\r\n                                }\r\n                            }\r\n```\r\n\r\nspecifically the line \r\n\r\n`                                            d = \"restart\" === b[c] ? this._buildStream().tree() : b[c], e = a.serialize(d), this._conn.xmlOutput(d), this._conn.rawOutput(e), this.socket.send(e)`\r\n\r\nmore specifically the part in that line `this.socket.send(e)`.\r\n\r\nQuickBlox documentation says that, it should be run over HTTPS for security reason and so I tried that as well by enabling SSL and attaching a self signed certificate but **NO LUCK**\r\n\r\nCan you shed some light here as to what going wrong and why such weird undocumented behavior I am seeing.\r\n\r\n**NOTE:** It's the same sample I have downloaded from GitHib (Following QuickBlox documentation page) and haven't change anything except the config file to include my own \"AppId/AuthKey/AuthSecrect and few demo users\"\r\n\r\nThanks,\r\nSirsendu Mukherjee "},"comment":{"url":"https://api.github.com/repos/QuickBlox/quickblox-javascript-sdk/issues/comments/204133620","html_url":"https://github.com/QuickBlox/quickblox-javascript-sdk/issues/125#issuecomment-204133620","issue_url":"https://api.github.com/repos/QuickBlox/quickblox-javascript-sdk/issues/125","id":204133620,"user":{"login":"Sirsendu786","id":18198348,"avatar_url":"https://avatars.githubusercontent.com/u/18198348?v=3","gravatar_id":"","url":"https://api.github.com/users/Sirsendu786","html_url":"https://github.com/Sirsendu786","followers_url":"https://api.github.com/users/Sirsendu786/followers","following_url":"https://api.github.com/users/Sirsendu786/following{/other_user}","gists_url":"https://api.github.com/users/Sirsendu786/gists{/gist_id}","starred_url":"https://api.github.com/users/Sirsendu786/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sirsendu786/subscriptions","organizations_url":"https://api.github.com/users/Sirsendu786/orgs","repos_url":"https://api.github.com/users/Sirsendu786/repos","events_url":"https://api.github.com/users/Sirsendu786/events{/privacy}","received_events_url":"https://api.github.com/users/Sirsendu786/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T21:17:44Z","updated_at":"2016-03-31T21:17:44Z","body":"related stackoverflow question thread\r\n\r\nhttp://stackoverflow.com/questions/36343943/quickblox-video-chat-demo-web-sample-this-socket-is-undefined-after-calling-s\r\n"}}