{"action":"created","issue":{"url":"https://api.github.com/repos/75team/thinkjs/issues/362","repository_url":"https://api.github.com/repos/75team/thinkjs","labels_url":"https://api.github.com/repos/75team/thinkjs/issues/362/labels{/name}","comments_url":"https://api.github.com/repos/75team/thinkjs/issues/362/comments","events_url":"https://api.github.com/repos/75team/thinkjs/issues/362/events","html_url":"https://github.com/75team/thinkjs/issues/362","id":157394676,"number":362,"title":"websocket session操作","user":{"login":"rindybo","id":7138939,"avatar_url":"https://avatars.githubusercontent.com/u/7138939?v=3","gravatar_id":"","url":"https://api.github.com/users/rindybo","html_url":"https://github.com/rindybo","followers_url":"https://api.github.com/users/rindybo/followers","following_url":"https://api.github.com/users/rindybo/following{/other_user}","gists_url":"https://api.github.com/users/rindybo/gists{/gist_id}","starred_url":"https://api.github.com/users/rindybo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rindybo/subscriptions","organizations_url":"https://api.github.com/users/rindybo/orgs","repos_url":"https://api.github.com/users/rindybo/repos","events_url":"https://api.github.com/users/rindybo/events{/privacy}","received_events_url":"https://api.github.com/users/rindybo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-29T16:46:20Z","updated_at":"2016-06-17T08:52:01Z","closed_at":null,"body":"## DESC\r\n请问如何在websocket的action中设置session登录状态，文档有提到在open action中可以获取验证session,但是我测试过在index设置好sesion,open中的session一直时undefined,获取的key(cookie)与在浏览器生成的不一致。\r\n现在的需求是checklogin(websocket)，验证通过就设置session登录状态，不知道如何操作\r\n\r\n\r\n## ENV\r\n\r\nPlatform:\r\nwindows8&centos7\r\nNode.js Version:\r\n4.2\r\nThinkJS Version:\r\n2.2.x"},"comment":{"url":"https://api.github.com/repos/75team/thinkjs/issues/comments/226716040","html_url":"https://github.com/75team/thinkjs/issues/362#issuecomment-226716040","issue_url":"https://api.github.com/repos/75team/thinkjs/issues/362","id":226716040,"user":{"login":"welefen","id":40935,"avatar_url":"https://avatars.githubusercontent.com/u/40935?v=3","gravatar_id":"","url":"https://api.github.com/users/welefen","html_url":"https://github.com/welefen","followers_url":"https://api.github.com/users/welefen/followers","following_url":"https://api.github.com/users/welefen/following{/other_user}","gists_url":"https://api.github.com/users/welefen/gists{/gist_id}","starred_url":"https://api.github.com/users/welefen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/welefen/subscriptions","organizations_url":"https://api.github.com/users/welefen/orgs","repos_url":"https://api.github.com/users/welefen/repos","events_url":"https://api.github.com/users/welefen/events{/privacy}","received_events_url":"https://api.github.com/users/welefen/received_events","type":"User","site_admin":false},"created_at":"2016-06-17T08:52:01Z","updated_at":"2016-06-17T08:52:01Z","body":"socket.io open 的时候可以拿到是否是登录状态的"}}
{"actor":{"display_login":"welefen"}}