This logic should be moved to ```detect.js``` as a ```hasWebSockets``` method, you should then use it to return out of the init if it is unsupported.