I have activated the slack xmpp gateway. I could connect to it from pidgin to validate that it’s working : it does ;-p
Now, i’m starting the java part, but i get the following message and i just could not receive any message :
INFOS: Could not resolve DNS SRV resource records for _xmpp-client._tcp.rastadidi.xmpp.slack.com. Consider adding those.
I have tried the very latest smack version as i saw it could do the job on some ticket here but no luck for me, it did not work
Here is an extract of my pom :
<!-- https://mvnrepository.com/artifact/org.igniterealtime.smack/smack-core -->
ANd here is the java code (passwd replaces by stars) :
XMPPTCPConnectionConfiguration.Builder configBuilder = XMPPTCPConnectionConfiguration.builder();
AbstractXMPPConnection connection = new XMPPTCPConnection(configBuilder.build());
// Connect to the server
// Log into the server
ChatManager chatManager = ChatManager.getInstanceFor(connection);
EntityBareJid jid = JidCreate.entityBareFrom("email@example.com");
Chat chat = chatManager.chatWith(jid);
// send a message to room !