Polling is a Hack: Server Sent Events (EventSource) with gevent, Flask, nginx, and FreeBSD

Polling is a Hack (1)

screencapture-staticfuzz-com-1454195611214
staticfuzz.com

Server-sent events efficiently sends data to clients in real-time and asynchronously. This particular setup was used for STATICFUZZ and shows you how to send an event from server/Python to client/JavaScript, plus setting up the server! This is about as full stack as it gets!

Core technologies:

  • JavaScript/EventSource
  • gevent
  • Flask/Python
  • nginx
  • FreeBSD

Continue reading “Polling is a Hack: Server Sent Events (EventSource) with gevent, Flask, nginx, and FreeBSD”