Saturday, February 11, 2017

Babbler Version 0.7.3 released

I've released version 0.7.3 of the Java XMPP library. This is primarily a "bug fix and improvements" release and is compatible with previous 0.7.x releases. Here's the changelog:
  • Use single equals sign (“=”) for zero-length data in SASL, as per RFC 6120 § 6.4.2
  • Allow configuring a custom stream host and skip proxy discovery then for SI file transfer.
  • Implement WebSocket pings/pongs.
  • Fix WebSocket’s proxy URI construction.
  • Use connect timeout for WebSocket connections.
  • XEP-0198: Send an ack right before gracefully closing the stream (i.e. update to version 1.5.2).
  • MUC Room “enter” events should fire for oneself entering the room as well.
  • Use java.text.Collator for String-based default comparison.
  • XEP-0066: Use URI instead of URL.
  • Fix XMPP Ping in External Components, which broke the connection.
  • Jid.asBareJid returns this if it is already bare, reducing GC pressure.
  • connect() method should not throw CancellationException
  • Check if the connection has been secured (if configured) before starting to authenticate.

Maven coordinates

<dependency>
    <groupId>rocks.xmpp</groupId>
    <artifactId>xmpp-core-client</artifactId>
    <version>0.7.3</version>
</dependency>
<dependency>
    <groupId>rocks.xmpp</groupId>
    <artifactId>xmpp-extensions-client</artifactId>
    <version>0.7.3</version>
</dependency>

8 comments:

  1. Thanks for your library. It was very useful especially when i use complex extensions. I have created some codes, and succeed very easily.

    But when I check the xmpp messages by the wireshark, I could see nothing. I know there is the xmpp-debug and VisualDebugger. But I hope to see the packets by wireshark.

    Is there any reason that the packets are not shown in the wireshark?

    ReplyDelete
    Replies
    1. I guess because they are encrypted (Transport Layer Security). You could try without TLS: in XmppSessionConfiguration.Builder#secure(false), but maybe your server won't allow unencrypted connections.

      Delete
    2. Thank you for your reply. I had configured the secure option falsed. But I can't confirm my server allow unencrypted connection. If I find out something about this, I will leave a message here.

      Delete
  2. Hi Christian,

    I haven't found any contact information on your website so this comment will have to do.

    I want to get in touch with you about co-mentoring a potential Google Summer of Code student to create an OMEMO extension for Babbler. I'd be willing to to the majority of the day to day mentoring myself but it would be very helpful if we can get you as the actual library developer to co-mentor this so we'll have something that you are actually willing to merge in the end. Can you contact me on daniel (at) gultsch (dot) de. (Work both as email and jid)

    cheers
    Daniel

    ReplyDelete
  3. I am interested in using your library to build a chat client. However, I am not able to connect to server using the code you provided in the getting started guide. Can you please provide complete java code, a simple one, just to connect to server, login and then logout ?

    ReplyDelete