Skip to content

cpp009/lealone-rpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lealone-rpc

lealone-rpc js client, A rpc client for lealone, more detail go to https://github.com/lealone/Lealone

Usage

rpc by HTTP

// set server host path
lealone.setServiceUrl('http://localhost:8080/service');

// get rpc service
const userService = lealone.getService('teacher_server');

// rpc execution
userService.addUser('xiaoming', 12, (id: number) => {
  console.log(id, 'success')
});

TODO

  • typescript
  • sock rpc

About

lealone-rpc js client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published