1. Feb 09, 2023
    • bear's avatar
      Update error codes (#1004) · f542a005
      bear authored
      * chore: update error code
      
      * chore: format
      
      * chore: try fix ci
      
      * chore: fix ci
      f542a005
  2. Feb 08, 2023
    • Niklas Adolfsson's avatar
      server: bounded channels and backpressure (#962) · 5faac4f1
      Niklas Adolfsson authored
      
      
      * bounded channels
      
      * remove bounded subscriptions
      
      * remove resource limiting
      
      * kill connection once message tx fails
      
      * switch to tokio::mpsc
      
      * fix nits
      
      * make futures_channel hard dependency
      
      * add real backpressure to rx
      
      * PoC with crossbeam queue
      
      * remove pipe_from_stream
      
      * bring back Pending and SubscriptionSink again
      
      * more refactoring
      
      * add example of old APIs
      
      * introduce opaque SubscriptionMessage
      
      * feat: make subscription callbacks async
      
      * fix tests
      
      * move non-jsonrpc spec types from types
      
      * fix nits
      
      * improve docs
      
      * add pipe_from_stream APIs back
      
      * cleanup
      
      * Update core/src/server/helpers.rs
      
      * Update server/src/server.rs
      
      * more cleanup
      
      * Update core/src/server/helpers.rs
      
      * small fixes
      
      * rpc module: add unit test for backpressure
      
      * doc fixes
      
      * fix more nits
      
      * refactor: pipe_from_stream
      
      * fix examples: revert unintentional change
      
      * address grumbles
      
      * revert: don't require subscriptions to return Result
      
      * Update core/src/server/helpers.rs
      
      Co-authored-by: default avatarAlexandru Vasile <[email protected]>
      
      * grumbles: simplify PendingSubscription
      
      * grumbles: fix doc nits
      
      * remove pipe_from_stream APIs again
      
      * add backpressure test for ws server
      
      * rpc module: add `send_timeout` APIs
      
      * rpc module: add tokio/time
      
      * cleanup
      
      * Update examples/Cargo.toml
      
      * Update server/src/server.rs
      
      * Update server/src/server.rs
      
      * Update server/src/server.rs
      
      * extract `build_message` to `SubscriptionMessage`
      
      * remove resource limiting leftover
      
      * Update core/src/server/rpc_module.rs
      
      * Update examples/examples/ws_pubsub_broadcast.rs
      
      * Update examples/examples/ws_pubsub_broadcast.rs
      
      * revert unintentional change
      
      * Update examples/examples/ws_pubsub_with_params.rs
      
      * fix more nits
      
      * improve SubscriptionEmptyErr
      
      * clippy --fix
      
      * bring back subscription limit
      
      * server: `set_message_buffer_capacity`
      
      * rpc module: revert raw_json_request API
      
      * subscribe_bounded -> subscribe
      
      * CallResponse -> CallOrSubscription
      
      ---------
      
      Co-authored-by: default avatarAlexandru Vasile <[email protected]>
      5faac4f1
  3. Feb 02, 2023
  4. Feb 01, 2023
  5. Jan 31, 2023
    • Niklas Adolfsson's avatar
      client: use tokio channels (#999) · 1a2a1990
      Niklas Adolfsson authored
      * client: use tokio channels
      
      This PR replaces the future channels with tokio because the APIs fit our use-cases better.
      
      * remove unused code
      
      * fix wasm build
      
      * fix docs
      
      * fix tests
      
      * fix more nits
      
      * Update core/src/client/async_client/mod.rs
      
      * Update core/src/client/async_client/mod.rs
      
      * fix unwrap
      1a2a1990
  6. Jan 30, 2023
  7. Jan 26, 2023
  8. Jan 24, 2023
    • MOZGIII's avatar
      Custom errors (#977) · dab1bfc0
      MOZGIII authored
      
      
      * Implement support for custom errors
      
      * Remove unneded for<'a> from E bound
      
      * Fix doctest
      
      * Handle the case where there are not exactly two arguments
      
      * Support for other Result paths
      
      * Rewrite with a more explicit rewriting logic
      
      * Back to rewriting the error argument
      
      * Add UI error for non-result
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarNiklas Adolfsson <[email protected]>
      
      * Fix a typo
      
      * Fix errors in the rest of the targets
      
      Co-authored-by: default avatarNiklas Adolfsson <[email protected]>
      dab1bfc0
  9. Jan 13, 2023
  10. Jan 10, 2023
  11. Jan 09, 2023
  12. Jan 03, 2023
  13. Dec 14, 2022
  14. Dec 13, 2022
  15. Dec 05, 2022
  16. Dec 01, 2022
  17. Nov 30, 2022
  18. Nov 23, 2022
  19. Nov 21, 2022
    • Niklas Adolfsson's avatar
      fix(ci): wasm tests (#946) · 7893ea0b
      Niklas Adolfsson authored
      * debug wasm CI
      
      * install chrome + firefox
      
      * fix clippy job all-targets
      
      * Update .github/workflows/ci.yml
      
      * Update .github/workflows/ci.yml
      7893ea0b
  20. Nov 18, 2022
  21. Nov 10, 2022
  22. Nov 09, 2022
  23. Nov 08, 2022
  24. Nov 07, 2022
    • Niklas Adolfsson's avatar
      [client]: improve batch request API (#910) · 824c3691
      Niklas Adolfsson authored
      * better handling of batch requests
      
      * add test for untagged enum
      
      * remove annoying trait bounds
      
      * cleanup
      
      * more clear comments
      
      * simplify batch request code
      
      * bring back old API + a new one
      
      * refactor batches to work with String IDs again
      
      * refactor again: single batch response API
      
      * fix tests + cleanup
      
      * fix doc links
      
      * address grumbles
      
      * BatchRequestBuilder: add iterator API for the batch
      
      * revert bench
      
      * fix benches build
      
      * address grumbles: ok and into_ok
      
      * fix some nits
      
      * fix nits
      824c3691
    • Niklas Adolfsson's avatar
      chore(deps): tokio ^1.16 (#926) · 576d8379
      Niklas Adolfsson authored
      576d8379
    • Niklas Adolfsson's avatar
      fix(server): read accepted conns properly (#929) · 1f6368d2
      Niklas Adolfsson authored
      This PR fixes that the connection count is read after a connection has been accepted and
      not before which cause this log to be out of order.
      1f6368d2
  25. Nov 04, 2022
  26. Nov 03, 2022