Skip to content

Instantly share code, notes, and snippets.

@3rd-Eden
Created September 21, 2010 06:55
Show Gist options
  • Save 3rd-Eden/589308 to your computer and use it in GitHub Desktop.
Save 3rd-Eden/589308 to your computer and use it in GitHub Desktop.
this.io = {
version: '0.6',
setPath: function(path){
this.path = path;
// this is temporary until we get a fix for injecting Flash WebSocket javascript files dynamically,
// as io.js shouldn't be aware of specific transports.
if ('WebSocket' in window){
WebSocket.__swfLocation = path;
}
}
};
@3rd-Eden
Copy link
Author

Us it like: io.setPath( ( window.location.protocol == "https:" ? "https://" : "http://" ) + "commondatastorage.googleapis.com/client/WebSocketMainInsecure.swf" );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment