SoCKit demo code