0.0.2 • Published 9 years ago

huanxin v0.0.2

Weekly downloads
4
License
-
Repository
github
Last release
9 years ago

Nodejs Client for 环信/Easemob

How To Use

  • npm install easemob
  • in your code
      var easemob = require('easemob');
Em = new easemob({
  appKey: "appKey"
  clientSecret: "clientSecret",
  clientId: "clientId",
  orgName: "orgName",
  appName: "appName",
  loadToken:function(callback) {callback(null, token); },
  saveToken:function(token, callback) {callback(null);}
});

Em.createUser({
  username: "somename",
  password: "password",
  nickname: "nickName"
}, function(err, result) {
  console.log('err <<<', err);
  console.log('result <<<', result);
})
##TODO

##License

MIT
0.0.2

9 years ago