Not all browsers support websockets - it would be great to know if websockets are actually supported in the browser used, so you can fall back on something else.
As far as I can tell, there is currently no way to check this.
Perhaps a command isSupported or fail an open with a new BadOpen?