Connection not initialized

The R script used by this page is here:
cluster3d.R.
The R language:
http://www.rproject.org/.
The websockets package for R from:
http://cran.rproject.org/web/packages/websockets/.
Clustering example adapted from:
A Handbook of Statistical Analyses Using R by
Brian S. Everitt and Torsten Hothorn,
http://cran.rproject.org/web/packages/HSAUR/.
Scatter plot idea from:
Thiemo Mättig.