{"action":"created","issue":{"url":"https://api.github.com/repos/socketstream/socketstream/issues/539","labels_url":"https://api.github.com/repos/socketstream/socketstream/issues/539/labels{/name}","comments_url":"https://api.github.com/repos/socketstream/socketstream/issues/539/comments","events_url":"https://api.github.com/repos/socketstream/socketstream/issues/539/events","html_url":"https://github.com/socketstream/socketstream/issues/539","id":75230023,"number":539,"title":"Oldie bug goodie: get session from concat middleware (Koa in this case)","user":{"login":"arxpoetica","id":111424,"avatar_url":"https://avatars.githubusercontent.com/u/111424?v=3","gravatar_id":"","url":"https://api.github.com/users/arxpoetica","html_url":"https://github.com/arxpoetica","followers_url":"https://api.github.com/users/arxpoetica/followers","following_url":"https://api.github.com/users/arxpoetica/following{/other_user}","gists_url":"https://api.github.com/users/arxpoetica/gists{/gist_id}","starred_url":"https://api.github.com/users/arxpoetica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arxpoetica/subscriptions","organizations_url":"https://api.github.com/users/arxpoetica/orgs","repos_url":"https://api.github.com/users/arxpoetica/repos","events_url":"https://api.github.com/users/arxpoetica/events{/privacy}","received_events_url":"https://api.github.com/users/arxpoetica/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-11T13:49:47Z","updated_at":"2015-05-13T12:58:22Z","closed_at":null,"body":"[See this google group thread to see why this is an oldie.](https://groups.google.com/forum/?fromgroups=#!searchin/socketstream/Getting$20session$20variable$20when$20using$20express$20with$20SS/socketstream/GI-7PPTAWyA/_7f9okLAnm0J)\r\n\r\nOnly, we're talking Koa this time, which is a totally different beast. Koa uses generator functions (iterators), so appending Koa to the SS stack proved to be tricky, and I'm still not confident I'm doing it right. See this line to see how I did it: https://github.com/socketstream/ss-examples/blob/feature/ractive-example/ractive-koa/app.js#L75 Also, here's the koa-connect file that makes it happen: https://github.com/vkurchatkin/koa-connect/blob/master/index.js\r\n\r\nAdmittedly, appending ss via connect doesn't feel right. This has been the only methodology I've been able to get to work so far—at least for serving routed from both Koa and SS. It feels like there should be a different mechanism, w/out resorting to connect. But I digress.\r\n\r\nIt *appears* to be working. What *won't* work, however—I can't access the session w/ in any Koa routes.\r\n\r\nPlease ask me lots of questions. I feel like there's some piece of information I'm missing on *why* this isn't working, but I need to probably explain better—a bit of a catch twenty two. If someone can lead me down the right path, I might be able to answer my own Q here and get it right.\r\n\r\nHalp?! :)"},"comment":{"url":"https://api.github.com/repos/socketstream/socketstream/issues/comments/101654438","html_url":"https://github.com/socketstream/socketstream/issues/539#issuecomment-101654438","issue_url":"https://api.github.com/repos/socketstream/socketstream/issues/539","id":101654438,"user":{"login":"arxpoetica","id":111424,"avatar_url":"https://avatars.githubusercontent.com/u/111424?v=3","gravatar_id":"","url":"https://api.github.com/users/arxpoetica","html_url":"https://github.com/arxpoetica","followers_url":"https://api.github.com/users/arxpoetica/followers","following_url":"https://api.github.com/users/arxpoetica/following{/other_user}","gists_url":"https://api.github.com/users/arxpoetica/gists{/gist_id}","starred_url":"https://api.github.com/users/arxpoetica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arxpoetica/subscriptions","organizations_url":"https://api.github.com/users/arxpoetica/orgs","repos_url":"https://api.github.com/users/arxpoetica/repos","events_url":"https://api.github.com/users/arxpoetica/events{/privacy}","received_events_url":"https://api.github.com/users/arxpoetica/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T12:58:22Z","updated_at":"2015-05-13T12:58:22Z","body":"@paulbjensen any clues where I should start hunting on this one?"}}