View Single Post
  #1 (permalink)  
Old March 1st, 2011, 07:10 AM
Robert Moses Robert Moses is offline
Registered User
 
Join Date: May 2010
Location: Terra/Sol/Orion-Cygnus Arm/MilkyWay
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chp 7 : Dig.js - need to correct code

Great book, I am enjoying it immensely.

In the dig.js the following code does not work:

$(document).bind('connect', function (ev, data) {
var conn = new Strophe.Connection(
"http://localhost:5280/xmpp-httpbind");
//'http://bosh.metajack.im:5280/xmpp-httpbind')

I had to remove "http://localhost:5280/xmpp-httpbind" and make it look like this:

$(document).bind('connect', function (ev, data) {
var conn = new Strophe.Connection(
'http://bosh.metajack.im:5280/xmpp-httpbind')

It works now.

I am a newbie, did I get it right or am I missing something?