From eba7510be83df528f78169a1fb854358d8d4bcdd Mon Sep 17 00:00:00 2001 From: or-else Date: Sat, 9 Jan 2016 21:59:36 -0800 Subject: [PATCH] adding subscription (incomplete) --- index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 26c2e656..ac5d2bd5 100644 --- a/index.html +++ b/index.html @@ -574,7 +574,9 @@ dignissim a diam a hendrerit. Nulla vel est ut quam rhoncus pulvinar. In hac hab Tinode.connect().then(function() { return Tinode.loginBasic(login, password); }).then(function() { - instance.setState({sidePanel: 'contacts', loggedIn: true}); + instance.setState({loggedIn: true}); + var me = new Tinode.Topic("me"); + me.subscribe(); }).catch(function(err) { instance.setState({loginDisabled: false, errorText: err.message}); });