Files
socket.io/lib/io.js
2010-04-01 19:43:51 -07:00

21 lines
575 B
JavaScript

/**
* Socket.IO client
*
* @author Guillermo Rauch <guillermo@rosepad.com>
* @license The MIT license.
* @copyright Copyright (c) 2009 RosePad <dev@rosepad.com>
*/
this.io = {
version: '0.1.6',
setPath: function(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.
WebSocket.__swfLocation = path + 'lib/vendor/web-socket-js/WebSocketMain.swf';
}
};
if ('jQuery' in this) jQuery.io = this.io;