I have setup an eJabberd server on my local machine. When i enter the below url in the browser:
http://localhost:5280/admin
It prompts me for the admin user name and password and then the page appears as shown below(Under the Virtual Hosts
section):
Note: syed-virtualbox and localhost are both one and the same
As shown in the above image, i have added 2 new users usr1 and usr2.
Now inorder to test is my server is working, I am downloading the samples/examples of the Library Strophe.js from this url:
https://github.com/strophe/strophejs/archive/v1.2.14.tar.gz
The samples can be found under the Examples
folder of the extracted Directory.
As shown below:
Now i edit all the js/javascript files in this directory and change the parameter BOSH_SERVICE to point to my localhost i.e. http://localhost:5280/xmpp-httpbind as shown in the below image:
Now, i start using the basic.html
file in the browser and enter the JID as usr1 (As mentioned in Unable to connect to ejabberd localhost )and its password. I get the below response:
Note: I get the same response even if i use usr1@localhost or usr1@syed-virtualbox
So i would like to know is there something that i'm doing wrong?
OR
Can someone provide me some working sample of Strophe on localhost?