JSPM

  • Created
  • Published
  • Downloads 2017867
  • Score
    100M100P100Q193621F
  • License MIT

Message based Two-way remote procedure call

Package Exports

  • birpc

Readme

birpc

NPM version

Message-based two-way remote procedure call. Useful for WebSockets and Workers communication.

Features

  • Intuitive - call remote functions just like locals, with Promise to get the response
  • TypeScript - safe function calls for arguments and returns
  • Protocol agonostic - WebSocket, MessageChannel, any protocols with messages communication would work!
  • Zero deps, ~0.5KB

Usage

See the test example.

Sponsors

License

MIT License © 2021 Anthony Fu