| 1 |
Application.define("core.socket",function(a,b){return a=jQuery.extend(!0,{port:443,url:!1,resource:"websocket.api/v1.5",secure:!0,"account-id":!1,"access-key":!1},"object"==typeof a?a:{}),"undefined"==typeof b&&(b=function(){return null}),new ud.socket.connect(a.url,a,function(a,c){if(a)return console.error("Socket Callback","Connection Failed",a),null;try{b(c)}catch(d){console.error("Socket Callback","Custom callback failed",d)}})}); |