voxpelli/webpage-webmentions — pull request #14 by stuartlangridge (2014-11-30 23:16:17+00:00)
Title: EventSource endpoint to watch for mentions of a site or url

Add a new endpoint, /api/mentions/live, which is an EventSource and therefore gives Instant Gratification to people wanting to know when webmentions have arrived for their sites and urls.

This would be a good fix for #11 if it had tests, which it doesn't, because I'm not sure how to test multiple listener stuff in the test framework.

Also, keeping this stuff in one big dict in memory is problematic if the service gets big enough to have lots of people listening, and totally stops working if the server gets sharded, but those are problems for another day.