sstrigler / JSJaC

JavaScript Jabber Client Library
Other
295 stars 86 forks source link

module mod_http_bind is not started in that host #52

Closed pokal4u closed 11 years ago

pokal4u commented 11 years ago

Hi,

Chat working good. in config file set {loglevel, 2}. then got below error in ejabberd log? ' You are trying to use BOSH (HTTP Bind) in host "domain.com", but the module mod_http_bind is not started in that host. Configure your BOSH client to connect to the correct host, or add your desired host to the configuration, or check your 'modules' section in your ejabberd configuration file.

and in my config file:

{modules, [ {mod_http_bind,[]} ]}

and my code:

oArgs = new Object(); oArgs.httpbase ="1.domain.com"; //oArgs.httpbase ="2.domain.com"; //oArgs.httpbase ="3.domain.com"; oArgs.timerval = 2000; if (typeof(oDbg) != 'undefined') oArgs.oDbg = oDbg; con = new JSJaCHttpBindingConnection(oArgs); setupCon(con); oArgs = new Object(); oArgs.domain ="domain.com"; oArgs.username ="pokal4u"; oArgs.resource ="123456"; oArgs.pass =''; con.connect(oArgs);

Please help.

Thanks Pokal4u

rraptorr commented 11 years ago

This is not an issue with JSJaC.

pokal4u commented 11 years ago

HI, give me a suggestion?

Thanks Pokal4u

rraptorr commented 11 years ago

You are trying to use BOSH (HTTP Bind) in host "domain.com", but the module mod_http_bind is not started in that host. Configure your BOSH client to connect to the correct host, or add your desired host to the configuration, or check your 'modules' section in your ejabberd configuration file.