diff options
author | sualko <klaus@jsxc.org> | 2018-01-22 17:51:08 +0300 |
---|---|---|
committer | sualko <klaus@jsxc.org> | 2018-01-22 17:51:08 +0300 |
commit | 9ca35c9c1e06883466bd3d7e8b529878fa1a1b91 (patch) | |
tree | 0278690a02bef190c328f891f24ab0137cb1dd81 /example | |
parent | 554383ff72aedc183f1d04ae16c64dc84195849c (diff) |
jsxc.start returns promise
Diffstat (limited to 'example')
-rw-r--r-- | example/ts.html | 7 |
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; }); |