add support for PONG events

Closes #200.