Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Version 0.1.2

  • Loading branch information...
commit 2358f44215d7ad4d72441c2c2a351ce0bf6c21b3 1 parent 2020ad8
@rauchg rauchg authored
Showing with 7 additions and 5 deletions.
  1. +1 −1  lib/io.js
  2. +6 −4 socket.io.js
View
2  lib/io.js
@@ -7,7 +7,7 @@
*/
this.io = {
- version: '0.1.1',
+ version: '0.1.2',
setPath: function(path){
this.path = /\/$/.test(path) ? path : path + '/';
View
10 socket.io.js
@@ -1,4 +1,4 @@
-/** Socket.IO 0.1.1 - Built with build.js */
+/** Socket.IO 0.1.2 - Built with build.js */
/**
* Socket.IO client
*
@@ -8,10 +8,10 @@
*/
this.io = {
- version: '0.1.1',
+ version: '0.1.2',
setPath: function(path){
- this.path = path;
+ this.path = /\/$/.test(path) ? 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.
@@ -583,12 +583,14 @@ io.Transport.flashsocket = io.Transport.websocket.extend({
this.base.connect();
return;
}
- return this.__super__();
+ return this.__super__();
}
});
io.Transport.flashsocket.check = function(){
+ if (!('path' in io)) throw new Error('The `flashsocket` transport requires that you call io.setPath() with the path to the socket.io client dir.');
+
if ('navigator' in window && navigator.plugins){
return !! navigator.plugins['Shockwave Flash'].description;
}
Please sign in to comment.
Something went wrong with that request. Please try again.