Unify pendingMessages method on HELLO and PING