[1.8.x] support ping/pong listener handling
Merge pull request #748 from elakito/work-1.8.x

[1.8.x] support ping/pong listener handling