Updated sample to latest version of XSockets