{"action":"created","issue":{"url":"https://api.github.com/repos/socketstream/ss-examples/issues/1","labels_url":"https://api.github.com/repos/socketstream/ss-examples/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/socketstream/ss-examples/issues/1/comments","events_url":"https://api.github.com/repos/socketstream/ss-examples/issues/1/events","html_url":"https://github.com/socketstream/ss-examples/issues/1","id":69368437,"number":1,"title":"Combine Koa with SS","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":4,"created_at":"2015-04-19T01:28:44Z","updated_at":"2015-04-20T15:41:40Z","closed_at":null,"body":"How do I prepend/append (?) Koa to the SS stack? I know how to do this w/ Express, but it's a little different w/ Koa since the middleware runs on generators *not* callbacks. Koa *does* however, supply a `app.callback()` function (which happens after running all the generators)—can this be passed? How? What would the code look like?"},"comment":{"url":"https://api.github.com/repos/socketstream/ss-examples/issues/comments/94487863","html_url":"https://github.com/socketstream/ss-examples/issues/1#issuecomment-94487863","issue_url":"https://api.github.com/repos/socketstream/ss-examples/issues/1","id":94487863,"user":{"login":"thepian","id":72638,"avatar_url":"https://avatars.githubusercontent.com/u/72638?v=3","gravatar_id":"","url":"https://api.github.com/users/thepian","html_url":"https://github.com/thepian","followers_url":"https://api.github.com/users/thepian/followers","following_url":"https://api.github.com/users/thepian/following{/other_user}","gists_url":"https://api.github.com/users/thepian/gists{/gist_id}","starred_url":"https://api.github.com/users/thepian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thepian/subscriptions","organizations_url":"https://api.github.com/users/thepian/orgs","repos_url":"https://api.github.com/users/thepian/repos","events_url":"https://api.github.com/users/thepian/events{/privacy}","received_events_url":"https://api.github.com/users/thepian/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T15:41:40Z","updated_at":"2015-04-20T15:41:40Z","body":"I wonder if this is similar to Express configuration.\r\n\r\nIn Express I have\r\n\r\n     var app = express();\r\n     ...\r\n     app.use('/',ss.http.middleware);\r\n     ....\r\n     var httpServer = app.listen(config.port);\r\n     ss.start(httpServer);"}}