websockets: final polish before release.  Tested on IE, Chrome and Firefox