Skip to content

horx/easemob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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",
    redis: { //use redis to save the  token, http://www.easemob.com/docs/rest/userapi/#getadmintoken
      host: "localhost",
      port: 6379
    }
  });

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

##TODO

##License

MIT

About

Nodejs Client for 环信/Easemob

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published