jeancochrane / findsepta

🚎 A web app for geolocating SEPTA buses and trolleys in Philadelphia.
https://findsepta.org
1 stars 1 forks source link

Use long-polling or websockets #12

Open kalilsn opened 7 years ago

kalilsn commented 7 years ago

Rather than requesting new data every 5 seconds, we could consider opening a request to the server that will only be completed if the data changes (and otherwise will time out and be repeated by the client). Here's a guide to doing that with bottle.

Alternatively, we could switch to node.js for the backend and use socket.io to update via websockets.

jeancochrane commented 7 years ago

Great idea!