You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* This is the property that tells the API whether or not the API will log to the console
92
92
* This should be left `false` in production
@@ -950,12 +950,13 @@ if (!window.console) {
950
950
* <p>{boolean} [cleanSession] The server will persist state of the session if true. Not avaliable in beta.</p>
951
951
* <p>{boolean} [useSSL] The option to use SSL websockets. Default is false for now.</p>
952
952
* <p>{object} [invocationContext] An object to wrap all the important variables needed for the onFalure and onSuccess functions. The default is empty.</p>
953
-
* <p>{function} [onSuccess] A callback to operate on the result of a sucessful connect. In beta the default is empty.</p>
954
-
* <p>{function} [onFailure] A callback to operate on the result of an unsuccessful connect. In beta the default is also empty.</p>
953
+
* <p>{function} [onSuccess] A callback to operate on the result of a sucessful connect. In beta the default is just the invoking of the `callback` parameter with the data from the connection.</p>
954
+
* <p>{function} [onFailure] A callback to operate on the result of an unsuccessful connect. In beta the default is just the invoking of the `callback` parameter with the data from the connection.</p>
955
955
* <p>{Object} [hosts] An array of hosts to attempt to connect too. Sticks to the first one that works. The default is "platform.clearblade.com".</p>
956
956
* <p>{Object} [ports] An array of ports to try, it also sticks to thef first one that works. The defaults are 80,8080,1337.</p>
957
957
*</p>
958
-
* @param {function} callback Callback to be run upon connection
958
+
* @param {function} callback Callback to be run upon either succeessful or
959
+
* failed connection
959
960
* @example <caption> A standard connect</caption>
960
961
* var callback = function (data) {
961
962
* console.log(data);
@@ -971,35 +972,37 @@ if (!window.console) {
971
972
conf.password=ClearBlade.appSecret;
972
973
conf.cleanSession=options.cleanSession||true;
973
974
conf.useSSL=options.useSSL||false;//up for debate. ole' perf vs sec argument
974
-
conf.hosts=["platform.clearblade.com"];
975
+
conf.hosts=["64.49.226.26"];
975
976
conf.ports=[1337];
976
977
977
978
varonConnectionLost=function(){
978
-
alert("connection lost- attempting to reestablish");
979
+
console.log("ClearBlade Messaging connection lost- attempting to reestablish");
0 commit comments