sample client supports enter and leave event