Quantcast
Channel: Ignite Realtime: Message List
Viewing all articles
Browse latest Browse all 11593

How to add sid to a Bosh xmpp connection?

$
0
0

I'm having trouble connection to my bosh server, it says it needs "sid":

org.igniterealtime.jbosh.BOSHException: Connection Manager session creation response did not include required 'sid' attribute

this is how I'm trying to connect / login:

        BOSHConfiguration.Builder configBuilder =BOSHConfiguration.builder(); configBuilder.setUsernameAndPassword(USERNAME, PASSWORD); configBuilder.setHost(HOST); configBuilder.setPort(PORT); configBuilder.setFile(FILE_PATH); configBuilder.setUseHttps(true); configBuilder.setServiceName(SERVICE);
        AbstractXMPPConnection connection =newXMPPBOSHConnection(configBuilder.build());

try { connection.connect(); } catch (SmackException e) {


Viewing all articles
Browse latest Browse all 11593

Trending Articles