I am having trouble using strophe to connect to a Tigase server. All
is well when I use firefox but when I use chrome, I get this...
2011-09-16 14:30:45 ConnectionManager.serviceStarted() FINER:
[[bosh]] Connection started:
192.168.130.105_6202_10.200.128.222_62539, type: accept, Socket:
Socket[addr=/
10.200.128.222,port=62539,localport=6202]2011-09-16
Eventually, I see this in the Tigase debug log when I close the
browser or navigate away from the page.
14:31:43 ConnectionManager.serviceStopped() FINER: [[bosh]]
Connection stopped: 192.168.130.105_6202_10.200.128.222_62539, type:
accept, Socket: Socket[unconnected]
When I use firefox, I get this.
2011-09-16 14:32:06 ConnectionManager
$ConnectionListenerImpl.accept() FINEST: Accept called for service:
null@null
2011-09-16 14:32:06 ConnectionManager.serviceStarted() FINER:
[[bosh]] Connection started:
192.168.130.105_6202_10.200.128.222_62557, type: accept, Socket:
Socket[addr=/
10.200.128.222,port=62557,localport=6202]
2011-09-16 14:32:06 BoshConnectionManager.processSocketData() FINER:
Processing packet: body, type: null
2011-09-16 14:32:06 BoshConnectionManager.processSocketData()
FINEST: Processing socket data: from=null, to=null, DATA=<body
content="text/xml; charset=utf-8" wait="60" xmpp:version="1.0"
to="localhost" rid="1261947845" xmlns="
http://jabber.org/protocol/
httpbind" hold="1" xml:lang="en" xmlns:xmpp="urn:xmpp:xbosh" ver="1.6"/
>, SIZE=226, XMLNS=
http://jabber.org/protocol/httpbind,
PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null
On the strophe side, the onConnect handler fires with status =
Strophe.Status.CONNECTING but nothing else ever fires after that.
It looks to me like chrome will open the connection but never send the
initial request. This is before Tigase sends the CORS headers in the
response. What gives? Has anyone else had any success using strophe to
connect to Tigase on chrome?