XSockets incorporated into widget app but not working