{"action":"created","issue":{"url":"https://api.github.com/repos/priologic/easyrtc/issues/135","labels_url":"https://api.github.com/repos/priologic/easyrtc/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/priologic/easyrtc/issues/135/comments","events_url":"https://api.github.com/repos/priologic/easyrtc/issues/135/events","html_url":"https://github.com/priologic/easyrtc/issues/135","id":68334552,"number":135,"title":"How to maintain unique EasyRTC id for unique session","user":{"login":"deepak-manwal","id":6689091,"avatar_url":"https://avatars.githubusercontent.com/u/6689091?v=3","gravatar_id":"","url":"https://api.github.com/users/deepak-manwal","html_url":"https://github.com/deepak-manwal","followers_url":"https://api.github.com/users/deepak-manwal/followers","following_url":"https://api.github.com/users/deepak-manwal/following{/other_user}","gists_url":"https://api.github.com/users/deepak-manwal/gists{/gist_id}","starred_url":"https://api.github.com/users/deepak-manwal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepak-manwal/subscriptions","organizations_url":"https://api.github.com/users/deepak-manwal/orgs","repos_url":"https://api.github.com/users/deepak-manwal/repos","events_url":"https://api.github.com/users/deepak-manwal/events{/privacy}","received_events_url":"https://api.github.com/users/deepak-manwal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/priologic/easyrtc/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-14T10:32:32Z","updated_at":"2015-09-27T19:17:08Z","closed_at":"2015-09-27T19:17:08Z","body":"I am developing chat application with EasyRTC and Nodejs. \r\n\r\nOnce user logs in it redirects to the `welcome.jade`. I am using following **Javascript** code for connecting user:\r\n\r\n    function connect() { //calling this function on body onload\r\n        easyrtc.setUsername($('#username').text()); //setting username\r\n        easyrtc.setPeerListener(addToConversation);\r\n        easyrtc.setRoomOccupantListener(convertListToButtons);\r\n        easyrtc.connect(\"easyrtc.instantMessaging\", loginSuccess, loginFailure);\r\n    }\r\n    function loginSuccess(easyrtcid) {  //callback function\r\n        selfEasyrtcid = easyrtcid;\r\n        console.log(\"I am \" + easyrtcid);\r\n    }\r\n\r\nSuppose i logged in with user `xyz@gmail.com` then a unique `easyrtcid` generated. But if i open this application in new tab, then another `easyrtcid` generated for same user `xyz@gmail.com`.\r\n\r\n**How can I prevent this happening?? How can i create this `easyrtcid` once and use it across the application? Is this possible?** "},"comment":{"url":"https://api.github.com/repos/priologic/easyrtc/issues/comments/143588507","html_url":"https://github.com/priologic/easyrtc/issues/135#issuecomment-143588507","issue_url":"https://api.github.com/repos/priologic/easyrtc/issues/135","id":143588507,"user":{"login":"dryswabbie","id":2674864,"avatar_url":"https://avatars.githubusercontent.com/u/2674864?v=3","gravatar_id":"","url":"https://api.github.com/users/dryswabbie","html_url":"https://github.com/dryswabbie","followers_url":"https://api.github.com/users/dryswabbie/followers","following_url":"https://api.github.com/users/dryswabbie/following{/other_user}","gists_url":"https://api.github.com/users/dryswabbie/gists{/gist_id}","starred_url":"https://api.github.com/users/dryswabbie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dryswabbie/subscriptions","organizations_url":"https://api.github.com/users/dryswabbie/orgs","repos_url":"https://api.github.com/users/dryswabbie/repos","events_url":"https://api.github.com/users/dryswabbie/events{/privacy}","received_events_url":"https://api.github.com/users/dryswabbie/received_events","type":"User","site_admin":false},"created_at":"2015-09-27T19:17:08Z","updated_at":"2015-09-27T19:17:08Z","body":"Sorry for the long delay, but questions in our issue tracker often don't get looked at. If you are still having problems, the best place for help is in our forums."}}