emit a file event #16

merged 1 commit into from Feb 21, 2013


None yet

2 participants

fgnass commented Feb 16, 2013

I'm writing a drop-in replacement for connect.static that watches the served files and notifies the client via server-sent events. This requires a hook where both the requested URL as well as the resolved file path is known. The existing stream event would do, but of course it isn't fired in case of conditional GETs. Adding an additional file event was the simplest solution I could think of.

@tj tj merged commit 1b24caf into pillarjs:master Feb 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment