support sending event types
Merge pull request #1 from hukeli/master

support sending event types