Revert "Add ping and keepAlive function in connection instance"

This reverts commit 2a2b962f50e14fd392a28b11af9375257ba9784a.