powered by Jive Software

Candy example WebSocket connection failure

I tried the Candy example included in the plugin, and I can’t login. Seems can’t connect with WebSocket. I’m using Chrome 31. Do I need change something in Chrome? Also attached a full console log.

WebSocket connection to ‘wss://192.168.1.26:7443/ws/server?username=simon&password=simon&resource=Candy’ failed: Unexpected response code: 404 strophe-connection-websockets.js:195

use the websockets plugin for openfire or change candy index.html file to use http-bind

Candy.init(’/http-bind/’, {
core: { debug: false, websockets: true},
view: { resources: ‘…/res/’ }
});

Candy.Core.connect();

see https://code.google.com/p/openfire-candy/ for more details

Hi Dele!

I’m trying to get Candy to work on 3.9.1 with Plugin version 1.2 and am getting the same error. However, the snippet referring to “http-bind” you mentioned exists. But still, candy tries to get a websockets connection to /ws/…

Is there something wrong or do we explicitely need the websockets plugin?

Thanks.

Dennis

Change

Candy.init(’/http-bind/’, {
core: { debug: false, websockets: true},
view: { resources: ‘…/res/’ }
});

to

Candy.init(’/http-bind/’, {
core: { debug: false, websockets: false},
view: { resources: ‘…/res/’ }
});

It worked for me.

Hi!

Yes, that works.

So is it true, that the additional websockets-plugin is needed if you want to use websockets?

Kind regards

Dennis