added support for pong when receiving ping from client