Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var callback = function (status) {
- if (status === Strophe.Status.REGISTER) {
- connection.register.fields.username = "juliet";
- connection.register.fields.password = "R0m30";
- connection.register.submit();
- } else if (status === Strophe.Status.REGISTERED) {
- console.log("registered!");
- connection.authenticate();
- } else if (status === Strophe.Status.CONNECTED) {
- console.log("logged in!");
- } else {
- // every other status a connection.connect would receive
- }
- im.js:5527 Uncaught badformat _reqToData @ im.js:5527 _register_cb @ im.js:173 conn._connect_cb @ im.js:82 _onRequestStateChange @ im.js:5339
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement