cube-socket example