{"action":"created","issue":{"url":"https://api.github.com/repos/socketstream/socketstream/issues/488","labels_url":"https://api.github.com/repos/socketstream/socketstream/issues/488/labels{/name}","comments_url":"https://api.github.com/repos/socketstream/socketstream/issues/488/comments","events_url":"https://api.github.com/repos/socketstream/socketstream/issues/488/events","html_url":"https://github.com/socketstream/socketstream/issues/488","id":56674217,"number":488,"title":"Routing for non-web-socket pages.","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":[{"url":"https://api.github.com/repos/socketstream/socketstream/labels/Feature%20Request","name":"Feature Request","color":"009800"},{"url":"https://api.github.com/repos/socketstream/socketstream/labels/Proposed%20change","name":"Proposed change","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-05T14:08:06Z","updated_at":"2015-02-08T07:13:03Z","closed_at":null,"body":"The current thinking/strategy for building out static assets and/or public-facing pages that don't involve web sockets is to couple SocketStream with Express (or an equivalent).\r\n\r\nThis may continue to be the right solution (though if we continue that path, I'm in favor of exploring other possibilities like Koa, etc.).\r\n\r\nExpress is a time worn solution, but it also feels a little kludgy in that there are conflicts or routing concerns that easily crop up when bootstrapping SS with Express. \r\n\r\nIt would be good to consider building something into SocketStream that allows for more routing possibilities. The Sails framework, for example, gets something right in this regard where routing is an implicit concern, and web sockets are made available—on any page. SocketStream *is* concerned with single page applications first and foremost, but in the real world of development, most websites need something more static. I think it's right to continue to approach SocketStream as \"the\" (or \"a\") solution for realtime apps—but SS probably doesn't give enough consideration to routing, as a framework.\r\n\r\nSee https://github.com/socketstream/socketstream/issues/484#issuecomment-73048430"},"comment":{"url":"https://api.github.com/repos/socketstream/socketstream/issues/comments/73399999","html_url":"https://github.com/socketstream/socketstream/issues/488#issuecomment-73399999","issue_url":"https://api.github.com/repos/socketstream/socketstream/issues/488","id":73399999,"user":{"login":"kulicuu","id":355726,"avatar_url":"https://avatars.githubusercontent.com/u/355726?v=3","gravatar_id":"","url":"https://api.github.com/users/kulicuu","html_url":"https://github.com/kulicuu","followers_url":"https://api.github.com/users/kulicuu/followers","following_url":"https://api.github.com/users/kulicuu/following{/other_user}","gists_url":"https://api.github.com/users/kulicuu/gists{/gist_id}","starred_url":"https://api.github.com/users/kulicuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kulicuu/subscriptions","organizations_url":"https://api.github.com/users/kulicuu/orgs","repos_url":"https://api.github.com/users/kulicuu/repos","events_url":"https://api.github.com/users/kulicuu/events{/privacy}","received_events_url":"https://api.github.com/users/kulicuu/received_events","type":"User","site_admin":false},"created_at":"2015-02-08T07:13:03Z","updated_at":"2015-02-08T07:13:03Z","body":"One approach I'd been considering but never got around to implementing on the system for which I'd had it in mind was to issue single page apps the way the olde http systems served single views in a system, in the sense that sessions would be shared and redundant resources would get traded off on client-side cache.  The immediate application for this is to have a major distinction between landing page app / 'gate' app, and the main app interface as for authorised 'normal' users."}}