add periodical ping to keep connection through proxy