Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jsxc/jsxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsualko <klaus@jsxc.org>2018-01-22 17:51:08 +0300
committersualko <klaus@jsxc.org>2018-01-22 17:51:08 +0300
commit9ca35c9c1e06883466bd3d7e8b529878fa1a1b91 (patch)
tree0278690a02bef190c328f891f24ab0137cb1dd81 /example
parent554383ff72aedc183f1d04ae16c64dc84195849c (diff)
jsxc.start returns promise
Diffstat (limited to 'example')
-rw-r--r--example/ts.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/example/ts.html b/example/ts.html
index 5c3d70e1..bd6d48f5 100644
--- a/example/ts.html
+++ b/example/ts.html
@@ -85,7 +85,12 @@
var jid = $(this).find('[name="jid"]').val();
var password = $(this).find('[name="password"]').val();
- jsxc.start(url, jid, password);
+ jsxc.start(url, jid, password)
+ .then(function(){
+ console.log('>>> CONNECTION READY')
+ }).catch(function(err) {
+ console.log('>>> catch', err)
+ })
return false;
});