Chat timeout fix

Ping handling to avoid timeouts