Can't find the source code of sending client packet to the server

Where is the source code of spark which sends the spark client information packet including name, version and so on to the server. I wanna to change the name of the spark client. For example, sending the name “newspark” to the server as the client’ name.

The spark JID


You’ll want to look at the org.jivesoftware.sparkimpl.plugin.jabber.JabberVersion class to see Spark’s implementation of the Smack Version packet.

Hope that helps,


Thanks a lot. It works.