Lines printed by ConsoleDebugger should refer to the XmppClient "ID" they belong to

Issue #105 closed
Former user created an issue

First of, thanks for creating such a great library! We've previously used Smack and are in the process of switching to Babbler now, in particular to get support for WebSockets!

One thing I noticed while using ConsoleDebugger: There's no way of knowing which stanza belongs to which XmppClient. Smack used "index numbers" for their debugging output, i.e. the first opened connection would get 0, the second 1 and so on. I didn't see an easy way to add this myself, thus this proposal.

Edit: A bit more context: We're using Babbler to write automated tests that involve multiple connections, e.g. to simulate sending a message from one user to another.

Comments (12)

  1. Christian Schudt repo owner

    Hi, do you prefer a counter (index), which increments for each session, or can we use some generated value, e.g. the stream id, which is generated by the server?

  2. Christian Schudt repo owner

    You can also write your own debugger implementation of course and print out whatever suits you. I haven't planned a new release yet.

  3. Log in to comment