Permalink
Browse files

Re-enable session:started items in demo

  • Loading branch information...
legastero committed Sep 26, 2014
1 parent ad4b57c commit 020321a77f2716e0a8e64235daedd95b5fe81c9e
Showing with 12 additions and 12 deletions.
  1. +12 −12 demo.html
View
@@ -147,18 +147,18 @@ <h1>Connection Settings</h1>
client.on('*', log);
client.on('session:started', function () {
- //client.enableCarbons(function (err) {
- // if (err) {
- // console.log('Server does not support carbons');
- // }
- //});
-
- //client.getRoster(function (err, resp) {
- // client.updateCaps();
- // client.sendPresence({
- // caps: client.disco.caps
- // });
- //});
+ client.enableCarbons(function (err) {
+ if (err) {
+ console.log('Server does not support carbons');
+ }
+ });
+
+ client.getRoster(function (err, resp) {
+ client.updateCaps();
+ client.sendPresence({
+ caps: client.disco.caps
+ });
+ });
});
client.connect();

0 comments on commit 020321a

Please sign in to comment.