Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

that._buildBody is not a function #4

Open
a92c opened this issue Mar 31, 2017 · 1 comment
Open

that._buildBody is not a function #4

a92c opened this issue Mar 31, 2017 · 1 comment

Comments

@a92c
Copy link

a92c commented Mar 31, 2017

When click the button.. Show this log... that._buildBody is not a function:
Code:

goToRegister() {

    var connection = new Strophe.Connection(
//          "http://bosh.metajack.im:5280/xmpp-httpbind");
      "http://192.168.179.131:7070/http-bind");

    var callback = function (status) {alert(status);
      if (status === Strophe.Status.REGISTER) {
        connection.register.fields.username = "fghdfhg";
        connection.register.fields.name = "dfgfdgfdg";
        connection.register.fields.password = "dfddfgfdg";
        connection.register.submit();
      } else if (status === Strophe.Status.REGISTERED) {
        console.log("registered!");
        connection.authenticate();
      } else if (status === Strophe.Status.CONNECTED) {
        console.log("connesso!");
      } else if (status === Strophe.Status.DISCONNECTED) {
        console.log("Disconnected from XMPP-Server");
      }
    };

//    connection.connect(data.jid, data.password, callback);
    connection.register.connect("ubuntu.com", callback, 60, 1);
  }
@sualko
Copy link
Member

sualko commented Mar 31, 2017

Please post your full error log and try to describe your issue in more detail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants