add a sample that demonstrates messages loops

add a sample that demonstrates Hub.Clients APIs