3 ms·
If there is no server side functionality, why not use one of the many react static site generators?
by bryanlarsen 11y ago
If there is no server side functionality, why not use one of the many react static site generators?
- fbonetti 11y agoBecause this isn't a static site. Updates are being fed to the client via websockets.
- bryanlarsen 11y agoBut neither koa.js nor express.js do websockets. You're holding up a site that would probably be simpler without both koa and express as an example to say that it doesn't make much of a difference whether you choose koa.js or express.js.
- jkarneges 11y agoWe've built a pretty cool library for Express that makes it easy to do WebSocket stuff through Pushpin (a proxy server). http://blog.fanout.io/2015/03/09/stateless-websockets-with-express-and-pushpin/ http://blog.fanout.io/2015/03/09/stateless-websockets-with-e... Not that this was covered in the article, but it would be a reason to choose Express as the backend. It would be cool to build something similar for Koa though.