adding \r\n at end of ping and pong messages