librelist archives

« back to archive

Converse : Prebind and BLANK Contact Panel BLANK issue.

Converse : Prebind and BLANK Contact Panel BLANK issue.

From:
Gauri Padbidri
Date:
2015-04-28 @ 19:58
Hi JC,

 

I am authenticating user on Server side, where I SET JID, RID and SID toget
it on Client Side.On the Client Side, I use the following : 

 

              converse.initialize({

                    auto_list_rooms: true,

                    auto_subscribe: false,

                    bosh_service_url: BOSH_URL,

                    hide_muc_server: false,

                    i18n: locales.en,

                    prebind: true,

                    jid: _jid,// from storage

                    sid: _sid,// from storage

                    rid: _rid,// from storage

                    play_sounds: true,

                    show_controlbox_by_default: true,

                    roster_groups: false,

                    keepalive: true,

                    allow_muc: true,

                    message_carbons:true

                });

 

After successful login, the Chat UI seems to appear BLANK meaning NO
Contacts / Rooms listed in the UI. Can you help me with the same ? Thanks !

NOTE : ConverseJS version 0.9.2

 

Best Regards,

Gauri Padbidri

Re: [conversejs] Converse : Prebind and BLANK Contact Panel BLANK issue.

From:
Jc Brand
Date:
2015-05-01 @ 08:40
Hi Gauri

On Wed, Apr 29, 2015 at 01:28:30AM +0530, Gauri Padbidri wrote:
>    I am authenticating user on Server side, where I SET JID, RID and SID
>    toget it on Client Side…On the Client Side, I use the following :
> 
>                  converse.initialize({
>                        auto_list_rooms: true,
>                        auto_subscribe: false,
>                        bosh_service_url: BOSH_URL,
>                        hide_muc_server: false,
>                        i18n: locales.en,
>                        prebind: true,
>                        jid: _jid,// from storage
>                        sid: _sid,// from storage
>                        rid : _rid,// from storage
>                        play_sounds: true,
>                        show_controlbox_by_default: true,
>                        roster_groups: false,
>             &nbs p;          keepalive: true,
>                        allow_muc: true,
>                        message_carbons:true
>                    });
> 
>    After successful login, the Chat UI seems to appear BLANK meaning NO
>    Contacts / Rooms listed in the UI… Can you help me with the same ? Thanks!
> 
>    NOTE : ConverseJS version 0.9.2

There isn't enough information for me to know what's going on. Set "debug:
true" in
converse.initialize and see what debug output you get in the browser console.

Specifically check if there are any errors logged.

JC

Re: [conversejs] Converse : Prebind and BLANK Contact Panel BLANK issue.

From:
Gauri Padbidri
Date:
2015-05-04 @ 07:28
Hi JC,

I resolved this issue...it was as simple as incrementing the RID by 1 for 
the value I got for rid from the server as the connection was established 
on server...

Sent from my iPhone

> On May 1, 2015, at 2:10 PM, JC Brand <lists@opkode.com> wrote:
> 
> Hi Gauri
> 
>> On Wed, Apr 29, 2015 at 01:28:30AM +0530, Gauri Padbidri wrote:
>>   I am authenticating user on Server side, where I SET JID, RID and SID
>>   toget it on Client Side…On the Client Side, I use the following :
>> 
>>                 converse.initialize({
>>                       auto_list_rooms: true,
>>                       auto_subscribe: false,
>>                       bosh_service_url: BOSH_URL,
>>                       hide_muc_server: false,
>>                       i18n: locales.en,
>>                       prebind: true,
>>                       jid: _jid,// from storage
>>                       sid: _sid,// from storage
>>                       rid : _rid,// from storage
>>                       play_sounds: true,
>>                       show_controlbox_by_default: true,
>>                       roster_groups: false,
>>            &nbs p;          keepalive: true,
>>                       allow_muc: true,
>>                       message_carbons:true
>>                   });
>> 
>>   After successful login, the Chat UI seems to appear BLANK meaning NO
>>   Contacts / Rooms listed in the UI… Can you help me with the same ? Thanks!
>> 
>>   NOTE : ConverseJS version 0.9.2
> 
> There isn't enough information for me to know what's going on. Set 
"debug: true" in
> converse.initialize and see what debug output you get in the browser console.
> 
> Specifically check if there are any errors logged.
> 
> JC

Re: [conversejs] Converse : Prebind and BLANK Contact Panel BLANK issue.

From:
Jc Brand
Date:
2015-05-04 @ 09:45
On Mon, May 04, 2015 at 12:58:50PM +0530, Gauri Padbidri wrote:
> I resolved this issue...it was as simple as incrementing the RID by 1 
for the value I got for rid from the server as the connection was 
established on server...

Take a look at the "keepalive" option of converse.js. It keeps track of the RID
for you and will automatically increment it so that you don't have to.
https://conversejs.org/docs/html/configuration.html#keepalive

If you use it together with the prebind_url option then your server will only
have to establish the BOSH connection once in the beginning.

JC

> > On May 1, 2015, at 2:10 PM, JC Brand <lists@opkode.com> wrote:
> > 
> > Hi Gauri
> > 
> >> On Wed, Apr 29, 2015 at 01:28:30AM +0530, Gauri Padbidri wrote:
> >>   I am authenticating user on Server side, where I SET JID, RID and SID
> >>   toget it on Client Side…On the Client Side, I use the following :
> >> 
> >>                 converse.initialize({
> >>                       auto_list_rooms: true,
> >>                       auto_subscribe: false,
> >>                       bosh_service_url: BOSH_URL,
> >>                       hide_muc_server: false,
> >>                       i18n: locales.en,
> >>                       prebind: true,
> >>                       jid: _jid,// from storage
> >>                       sid: _sid,// from storage
> >>                       rid : _rid,// from storage
> >>                       play_sounds: true,
> >>                       show_controlbox_by_default: true,
> >>                       roster_groups: false,
> >>            &nbs p;          keepalive: true,
> >>                       allow_muc: true,
> >>                       message_carbons:true
> >>                   });
> >> 
> >>   After successful login, the Chat UI seems to appear BLANK meaning NO
> >>   Contacts / Rooms listed in the UI… Can you help me with the same ? Thanks!
> >> 
> >>   NOTE : ConverseJS version 0.9.2
> > 
> > There isn't enough information for me to know what's going on. Set 
"debug: true" in
> > converse.initialize and see what debug output you get in the browser console.
> > 
> > Specifically check if there are any errors logged.
> > 
> > JC