Google writes: 'If you decide to use the XMPP connection server, you can use the provided Python or Java Smack demo apps as a starting point.'
I see little point in using Openfire, Openfire uses XML while Google uses JSON payload within the XML <message>.