Skip to content
forked from antfu/birpc

Message-based two-way remote procedure call.

License

Notifications You must be signed in to change notification settings

sheremet-va/birpc

Repository files navigation

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

About

Message-based two-way remote procedure call.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%