Created
September 21, 2010 06:55
-
-
Save 3rd-Eden/589308 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Us it like: io.setPath( ( window.location.protocol == "https:" ? "https://" : "http://" ) + "commondatastorage.googleapis.com/client/WebSocketMainInsecure.swf" );