Skip to content

Conversation

@tabaktoni
Copy link
Member

Motivation and Resolution

RpcChannel uses the request id param as an incremental counter
Test Setup req/res mather match by id

RPC version (if applicable)

0.5 0.6

Usage related changes

none, the user can still override the id if using RpcChannel.fetch() directly

Development related changes

The response can be matched with a request by id
Users have insight into a number of requests done by the RpcChannel instance from response id and by observing RpcChannel.requestId.
Users can reset or set requestId to the desired value.

Checklist:

  • Performed a self-review of the code
  • Rebased to the last commit of the target branch (or merged it into my branch)
  • Linked the issues which this PR resolves
  • Documented the changes in code (API docs will be generated automatically)
  • Updated the tests
  • All tests are passing

@netlify
Copy link

netlify bot commented Dec 20, 2023

Deploy Preview for starknetjs ready!

Name Link
🔨 Latest commit db91904
🔍 Latest deploy log https://app.netlify.com/sites/starknetjs/deploys/6582ca2c5bcf8b00082f4476
😎 Deploy Preview https://deploy-preview-906--starknetjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@tabaktoni tabaktoni changed the base branch from develop to beta December 20, 2023 11:04
@tabaktoni tabaktoni merged commit c38c239 into beta Dec 20, 2023
@github-actions
Copy link
Contributor

🎉 This PR is included in version 6.0.0-beta.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2024

🎉 This PR is included in version 6.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@penovicp penovicp deleted the feat/request-counter branch March 2, 2024 22:35
@github-actions
Copy link
Contributor

github-actions bot commented Jul 3, 2024

🎉 This issue has been resolved in version 7.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants