Subscribing to server events on the client #5

merged 1 commit into from Apr 30, 2012


None yet
2 participants

chrisjpowers commented Apr 10, 2012

I added the subscribe method on the client/server to enable clients to subscribe to the allocate, assume and free events on the server. I also hacked the client's on method to proxy these event handlers to the subscribe method for convenience. Tests are included, though I'm not super happy about using setTimeout in it (see comments). Any feedback would be appreciated!

@chrisjpowers chrisjpowers Added subscribe method to client and server to allow the client to ad…
…d remote listeners to the allocate, assume and free server events. Also added convenience hook so that on can be used rather than subscribe.

@substack substack merged commit de1a1e8 into substack:master Apr 30, 2012


substack commented Apr 30, 2012

Super excellent stuff, just landed in 0.7.0


chrisjpowers commented Apr 30, 2012


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment