I'm using node-xmpp using browserify for web application. When I try to make a for browser file using browserify, the resulting file outputs this in js console -
Cannot load StringPrep-0.1.0 bindings. You may need to
npm install node-stringprepclient.js:5108 Cannot load StringPrep-0.2.3 bindings (using fallback). You may need tonpm install node-stringprepclient.js:34 Cannot load StringPrep-0.2.3 bindings (using fallback). You may need tonpm install node-stringprep
After which the code fails saying
Uncaught TypeError: undefined is not a function
The file client.js work fine when i use in terminal
node client.js
There is nothing much in client.js
var xmpp = require('simple-xmpp');
xmpp.connect({
    jid                 : 'loginid',
    password            : 'password',
    host                : 'localhost',
    port                : 5222
});
xmpp.on('online', function() {
    console.log('Yes, I\'m connected!');
});
xmpp.on('chat', function(from, message) {
    xmpp.send(from, 'echo: ' + message);
});
xmpp.on('error', function(err) {
    console.error(err);
});
xmpp.on('subscribe', function(from) {
if (from === 'a.friend@gmail.com') {
    xmpp.acceptSubscription(from);
    }
});
which I simply took from their documentation. Any pointers ??