librelist archives

« back to archive

Converse.js v0.8.3 without jQuery included.

Converse.js v0.8.3 without jQuery included.

From:
Juan Jose Huelga
Date:
2014-11-07 @ 21:48
Is it possible to get conversejs v0.8.3 without jQuery included in
convesejs.min.js?

I've tried converse.nojquery.min.js from master but I'm getting some
errors no present in v0.8.3. With keepalive in true outbound messages
are being duplicated at the contact's chat. If I set keepalive to
false conversejs is able to connect to the XMPP (I'm using prebind.),
send and receive messages, messages are not duplicated but I get an
error (in browser console) saying that if I use predind but not
keepalive true I must set SID and RID values.

Regards

Re: [conversejs] Converse.js v0.8.3 without jQuery included.

From:
Jc Brand
Date:
2014-11-08 @ 00:38
On Fri, Nov 07, 2014 at 04:48:15PM -0500, Juan Jose Huelga wrote:
> Is it possible to get conversejs v0.8.3 without jQuery included in
> convesejs.min.js?

Yes, you can backport the changes in pull request #269 and then run "make
build".

https://github.com/jcbrand/converse.js/pull/269/files

> I've tried converse.nojquery.min.js from master but I'm getting some
> errors no present in v0.8.3. With keepalive in true outbound messages
> are being duplicated at the contact's chat.

Every single message is duplicated, or just some of them?

> If I set keepalive to
> false conversejs is able to connect to the XMPP (I'm using prebind.),
> send and receive messages, messages are not duplicated but I get an
> error (in browser console) saying that if I use predind but not
> keepalive true I must set SID and RID values.

It makes no sense to have prebind=true and not pass in RID or SID
values. If you do that, and think it's logical, then there must be some kind of
misunderstanding somewhere.

Did you read the documentation on prebind?

Re: [conversejs] Converse.js v0.8.3 without jQuery included.

From:
Juan Jose Huelga
Date:
2014-11-10 @ 16:07
Yes, with converse.nojquery.min.js from master if keepalive is set to
true every single outbound message from my chatbox is shown twice in
contact's chatbox.

With converse.nojquery.min.js from master I have prebind set to true
and I'm passing RID and SID too and converse is able to connect to my
BOSH server. Yes I do read Converse.js documentation on prebind, but
if I set keepalive to false Conversejs writes an error to js console
saying that if I use predind but not keepalive true I must set SID and
RID values.

Regards.

On 11/7/14, JC Brand <lists@opkode.com> wrote:
> On Fri, Nov 07, 2014 at 04:48:15PM -0500, Juan Jose Huelga wrote:
>> Is it possible to get conversejs v0.8.3 without jQuery included in
>> convesejs.min.js?
>
> Yes, you can backport the changes in pull request #269 and then run "make
> build".
>
> https://github.com/jcbrand/converse.js/pull/269/files
>
>> I've tried converse.nojquery.min.js from master but I'm getting some
>> errors no present in v0.8.3. With keepalive in true outbound messages
>> are being duplicated at the contact's chat.
>
> Every single message is duplicated, or just some of them?
>
>> If I set keepalive to
>> false conversejs is able to connect to the XMPP (I'm using prebind.),
>> send and receive messages, messages are not duplicated but I get an
>> error (in browser console) saying that if I use predind but not
>> keepalive true I must set SID and RID values.
>
> It makes no sense to have prebind=true and not pass in RID or SID
> values. If you do that, and think it's logical, then there must be some kind
> of
> misunderstanding somewhere.
>
> Did you read the documentation on prebind?
>

Re: [conversejs] Converse.js v0.8.3 without jQuery included.

From:
Jc Brand
Date:
2014-11-12 @ 15:23
On Mon, Nov 10, 2014 at 11:07:35AM -0500, Juan Jose Huelga wrote:
> Yes, with converse.nojquery.min.js from master if keepalive is set to
> true every single outbound message from my chatbox is shown twice in
> contact's chatbox.

This should now be fixed with latest commits (but no build exists yet).
  
> With converse.nojquery.min.js from master I have prebind set to true
> and I'm passing RID and SID too and converse is able to connect to my
> BOSH server. Yes I do read Converse.js documentation on prebind, but
> if I set keepalive to false Conversejs writes an error to js console
> saying that if I use predind but not keepalive true I must set SID and
> RID values.

If you ARE passing in RID and SID values, then there's a bug.

Re: [conversejs] Converse.js v0.8.3 without jQuery included.

From:
Juan Jose Huelga
Date:
2014-11-12 @ 19:35
Yes I think there is a bug because I'm passing RID and SID, in fact,
converse is able to connect to my XMPP server, load my roster and all
that. I think it should be a bug with keepalive in false.

Best Regards

On 11/12/14, JC Brand <lists@opkode.com> wrote:
> On Mon, Nov 10, 2014 at 11:07:35AM -0500, Juan Jose Huelga wrote:
>> Yes, with converse.nojquery.min.js from master if keepalive is set to
>> true every single outbound message from my chatbox is shown twice in
>> contact's chatbox.
>
> This should now be fixed with latest commits (but no build exists yet).
>
>> With converse.nojquery.min.js from master I have prebind set to true
>> and I'm passing RID and SID too and converse is able to connect to my
>> BOSH server. Yes I do read Converse.js documentation on prebind, but
>> if I set keepalive to false Conversejs writes an error to js console
>> saying that if I use predind but not keepalive true I must set SID and
>> RID values.
>
> If you ARE passing in RID and SID values, then there's a bug.
>