birpc
birpc copied to clipboard
Message-based two-way remote procedure call.
### Description Include arguments of rpc calls in timeout error messages. This helps when debugging cases like https://github.com/vitest-dev/vitest/discussions/4357. Example of (intentional) error thrown in Vitest with this fix: ``` ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯...
Utility methods like `isEvent`, `isCall`, `isReply` and `getId` to use in `on` and `post` callbacks
### Clear and concise description of the problem Consider the below chrome extension birpc adaptor ```js let messageHandler: Function; // another proposal is on-the-way to get rid of this const...
### Description Currently, birpc can only handle result of rpc calling once, that make it hard to handle streaming multiple results (e.g. ReadableStream, Async Generator). This pr check if fn...
### Description This PR resolves a TypeScript issue that occurred when developers called `createBirpc` or `createBirpcGroup` with only one type parameter. Previously, this would cause a TypeScript error: ```typescript import...
### Describe the bug Hi, thanks for this awesome library. I don't know if it worked in previous versions of typescript, but when I pass only one type argument I...