a demo using xSocket