Problem: event broadcasts were not working

If the client argument was null, no events were being broadcast.

Solution: fix the code.
Merge pull request #71 from hintjens/master

Problem: event broadcasts were not working