Comparing version 0.9.0-beta.3 to 0.9.0-beta.4
{ | ||
"name": "Ably", | ||
"version": "0.9.0-beta.3", | ||
"version": "0.9.0-beta.4", | ||
"homepage": "https://www.ably.io/", | ||
@@ -5,0 +5,0 @@ "authors": [ |
/** | ||
* @license Copyright 2016, Ably | ||
* | ||
* Ably JavaScript Library v0.9.0-beta.3 | ||
* Ably JavaScript Library v0.9.0-beta.4 | ||
* https://github.com/ably/ably-js | ||
@@ -6,0 +6,0 @@ * |
@@ -181,2 +181,3 @@ var Auth = (function() { | ||
callback(err); | ||
return; | ||
} | ||
@@ -183,0 +184,0 @@ /* RTC8 |
@@ -111,3 +111,7 @@ var Transport = (function() { | ||
case actions.AUTH: | ||
this.auth.authorize(); | ||
this.auth.authorize(function(err) { | ||
if(err) { | ||
Logger.logAction(Logger.LOG_ERROR, 'Transport.onProtocolMessage()', 'Ably requested re-authentication, but unable to obtain a new token: ' + Utils.inspectError(err)); | ||
} | ||
}); | ||
break; | ||
@@ -114,0 +118,0 @@ case actions.ERROR: |
@@ -23,3 +23,3 @@ Defaults.protocolVersion = 1; | ||
Defaults.version = '0.9.0-beta.3'; | ||
Defaults.version = '0.9.0-beta.4'; | ||
Defaults.libstring = 'js-' + Defaults.version; | ||
@@ -26,0 +26,0 @@ Defaults.apiVersion = '0.9'; |
{ | ||
"name": "ably", | ||
"description": "Realtime client library for Ably.io, the realtime messaging service", | ||
"version": "0.9.0-beta.3", | ||
"version": "0.9.0-beta.4", | ||
"main": "./nodejs/index.js", | ||
@@ -6,0 +6,0 @@ "react-native": { |
# [Ably](https://www.ably.io) | ||
## Version: 0.9.0-beta.3 | ||
## Version: 0.9.0-beta.4 | ||
@@ -5,0 +5,0 @@ This repo contains the Ably javascript client library, for the browser (including IE8+), Nodejs, React Native, and Cordova. |
@@ -174,16 +174,19 @@ "use strict"; | ||
try { | ||
var realtime = helper.AblyRealtime({log: {level: 2}}); | ||
realtime.connection.once('connected', function() { | ||
realtime.channels.get(':hell').publish(function(err) { | ||
console.log("CALLBACK CALL'd", err.code) | ||
if(err) { | ||
test.ok(true, 'publish failed as expected'); | ||
test.equal(err.code, 40010, "correct error code") | ||
closeAndFinish(test, realtime); | ||
return; | ||
} | ||
test.ok(false, 'Unexpected attach success'); | ||
closeAndFinish(test, realtime); | ||
}); | ||
var realtime = helper.AblyRealtime({log: {level: 4}, | ||
transports: ['web_socket'], | ||
authCallback: (tokenparams, cb) => cb(null, "mz3G9w.Cis5orP6jG_WJxJgcZyWyUUxv_VpFRCE06trb5V4GHAyJi3bzX-Urydwdj4lxtStTg4aAkhknyjxpYPfK9APMqymfL9Gb99psdI_TK_hJ8dk") | ||
}); | ||
//realtime.connection.once('connected', function() { | ||
//realtime.channels.get(':hell').publish(function(err) { | ||
//console.log("CALLBACK CALL'd", err.code) | ||
//if(err) { | ||
//test.ok(true, 'publish failed as expected'); | ||
//test.equal(err.code, 40010, "correct error code") | ||
//closeAndFinish(test, realtime); | ||
//return; | ||
//} | ||
//test.ok(false, 'Unexpected attach success'); | ||
//closeAndFinish(test, realtime); | ||
//}); | ||
//}); | ||
monitorConnection(test, realtime); | ||
@@ -190,0 +193,0 @@ } catch(e) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
3295691
70890