{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1307","repository_url":"https://api.github.com/repos/Microsoft/BotBuilder","labels_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1307/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1307/comments","events_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1307/events","html_url":"https://github.com/Microsoft/BotBuilder/issues/1307","id":178772954,"number":1307,"title":"DirectLine API Conversation crossing browsers","user":{"login":"MohawkMan","id":9752771,"avatar_url":"https://avatars.githubusercontent.com/u/9752771?v=3","gravatar_id":"","url":"https://api.github.com/users/MohawkMan","html_url":"https://github.com/MohawkMan","followers_url":"https://api.github.com/users/MohawkMan/followers","following_url":"https://api.github.com/users/MohawkMan/following{/other_user}","gists_url":"https://api.github.com/users/MohawkMan/gists{/gist_id}","starred_url":"https://api.github.com/users/MohawkMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MohawkMan/subscriptions","organizations_url":"https://api.github.com/users/MohawkMan/orgs","repos_url":"https://api.github.com/users/MohawkMan/repos","events_url":"https://api.github.com/users/MohawkMan/events{/privacy}","received_events_url":"https://api.github.com/users/MohawkMan/received_events","type":"User","site_admin":false},"labels":[{"id":335881076,"url":"https://api.github.com/repos/Microsoft/BotBuilder/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":{"login":"dandriscoll","id":5069805,"avatar_url":"https://avatars.githubusercontent.com/u/5069805?v=3","gravatar_id":"","url":"https://api.github.com/users/dandriscoll","html_url":"https://github.com/dandriscoll","followers_url":"https://api.github.com/users/dandriscoll/followers","following_url":"https://api.github.com/users/dandriscoll/following{/other_user}","gists_url":"https://api.github.com/users/dandriscoll/gists{/gist_id}","starred_url":"https://api.github.com/users/dandriscoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dandriscoll/subscriptions","organizations_url":"https://api.github.com/users/dandriscoll/orgs","repos_url":"https://api.github.com/users/dandriscoll/repos","events_url":"https://api.github.com/users/dandriscoll/events{/privacy}","received_events_url":"https://api.github.com/users/dandriscoll/received_events","type":"User","site_admin":false},"assignees":[{"login":"dandriscoll","id":5069805,"avatar_url":"https://avatars.githubusercontent.com/u/5069805?v=3","gravatar_id":"","url":"https://api.github.com/users/dandriscoll","html_url":"https://github.com/dandriscoll","followers_url":"https://api.github.com/users/dandriscoll/followers","following_url":"https://api.github.com/users/dandriscoll/following{/other_user}","gists_url":"https://api.github.com/users/dandriscoll/gists{/gist_id}","starred_url":"https://api.github.com/users/dandriscoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dandriscoll/subscriptions","organizations_url":"https://api.github.com/users/dandriscoll/orgs","repos_url":"https://api.github.com/users/dandriscoll/repos","events_url":"https://api.github.com/users/dandriscoll/events{/privacy}","received_events_url":"https://api.github.com/users/dandriscoll/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-09-23T02:58:43Z","updated_at":"2016-11-04T03:05:19Z","closed_at":"2016-11-04T03:05:19Z","body":"I posted a quest on stackoverflow earlier about having conversations cross browsers: \n[http://stackoverflow.com/questions/39649732/bot-connector-direct-line-api-cross-conversation](url)\n\nAfter, digging a little deeper and stepping through the emulator I realized that the emulator is using a different sub domain (webchat as apposed to directline). I also realized that webchat is using a cookie to store a UserId. Since the emulator makes the message post with from: null I can only assume you are setting the from prop of the messages server side with the UserId from the cookie. \n\nSo as I see it right now, if you write your own JS to work with the DirectLine API you either have to generate a temporary \"UserID\" and use it in the from of each message or send the initial message with from: null and get the Id the API generated by pulling the messages and reading it out. Is that right? It seems like there would be an easier way. Is there anything wrong with just generating a random id to use in the from property? \n\nOn the other side, this also means if you are using the emulator, the user can't restart the bot without killing the cookie. Which could be good and bad.\n\nAm I missing something?\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/comments/258334147","html_url":"https://github.com/Microsoft/BotBuilder/issues/1307#issuecomment-258334147","issue_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1307","id":258334147,"user":{"login":"dandriscoll","id":5069805,"avatar_url":"https://avatars.githubusercontent.com/u/5069805?v=3","gravatar_id":"","url":"https://api.github.com/users/dandriscoll","html_url":"https://github.com/dandriscoll","followers_url":"https://api.github.com/users/dandriscoll/followers","following_url":"https://api.github.com/users/dandriscoll/following{/other_user}","gists_url":"https://api.github.com/users/dandriscoll/gists{/gist_id}","starred_url":"https://api.github.com/users/dandriscoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dandriscoll/subscriptions","organizations_url":"https://api.github.com/users/dandriscoll/orgs","repos_url":"https://api.github.com/users/dandriscoll/repos","events_url":"https://api.github.com/users/dandriscoll/events{/privacy}","received_events_url":"https://api.github.com/users/dandriscoll/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T03:05:19Z","updated_at":"2016-11-04T03:05:19Z","body":"Closing this older issue. Please feel free to open a new issue if you have further questions."}}
{"actor":{"display_login":"dandriscoll"}}