add ping frame
add server ping logic