- Apr 28, 2022
-
-
Niklas Adolfsson authored
-
Niklas Adolfsson authored
-
Niklas Adolfsson authored
-
Niklas Adolfsson authored
-
- Apr 20, 2022
-
-
Niklas Adolfsson authored
* fix(rpc module): fail subscription with bad params * draft; show my point * fix tests * fix build * add tests for proc macros too * add tests for bad params in proc macros * fix nits * commit all files * add ugly fix for proc macro code * add more user friendly API * make SubscriptionSink::close take mut self * fix grumbles * show james some code * Update core/src/server/rpc_module.rs Co-authored-by: James Wilson <[email protected]> * remove needless clone * fix build * client fix docs + error type * simplify code: merge connect reset and unsubscribe close reason * remove unknown close reason * refactor: remove Error::SubscriptionClosed * add some nice APIs to ErrorObjectOwned * unify api * address grumbles * remove redundant methods for close and reject * proc macro: compile err when subscription -> Result * rpc module: fix test subscription test * Update core/src/server/rpc_module.rs Co-authored-by: James Wilson <[email protected]> * Update core/src/server/rpc_module.rs Co-authored-by: James Wilson <[email protected]> * Update core/src/server/rpc_module.rs Co-authored-by: James Wilson <[email protected]> * Update core/src/server/rpc_module.rs Co-authored-by: James Wilson <[email protected]> * Update core/src/server/rpc_module.rs Co-authored-by: James Wilson <[email protected]> * Update proc-macros/src/lib.rs Co-authored-by: James Wilson <[email protected]> * address grumbles * remove faulty comment * Update core/src/server/rpc_module.rs Co-authored-by: David <[email protected]> * Update core/src/server/rpc_module.rs Co-authored-by: David <[email protected]> * Update core/src/server/rpc_module.rs Co-authored-by: David <[email protected]> * Update core/src/server/rpc_module.rs Co-authored-by: David <[email protected]> * Update core/src/server/rpc_module.rs Co-authored-by: David <[email protected]> * fix: don't send `RPC Call failed: error`. * remove debug assert Co-authored-by: James Wilson <[email protected]> Co-authored-by: David <[email protected]>
-
- Apr 05, 2022
-
-
Niklas Adolfsson authored
These logs are most likely related to that the client terminated the connection and they come with significant overhead.
-
Niklas Adolfsson authored
-
- Apr 01, 2022
-
-
Niklas Adolfsson authored
* refactor: make `pipe_from_stream` take stream of result The rationale for this is that it is more flexible for use cases when `Stream<Item = Result<T, Error>>`. Take for example `tokio_stream::Broadcast` then one would have to something like: ```rust let stream = BroadcastStream::new(rx).take_while(|r| future::ready(r.is_ok())).filter_map(|r| future::ready(r.ok())); ``` Of course it's a bit awkward to return `Result` when the underlying stream can't fail but I think that's fair trade-off here. * Update core/src/server/rpc_module.rs Co-authored-by: Tarik Gul <[email protected]> * pipe_from_stream: make E: Display instead of StdError * add a test * add `pipe_from_try_stream` API to support `TryStream` * Update tests/tests/integration_tests.rs * Update proc-macros/src/lib.rs Co-authored-by: Tarik Gul <[email protected]>
-
- Mar 30, 2022
-
-
Niklas Adolfsson authored
* refactor: get rid off `Error::Request` variant * fix nit * to_owned -> to_call_error
-
- Mar 09, 2022
-
-
David authored
* wip wip wip Use tokio::sync::Notify to signal to the server when a subscriber has gone away without calling unsubscribe * Cleanup * Fmt * More cleanup more TODOs * fmt * Address a few todos * Update core/src/server/rpc_module.rs Co-authored-by: Niklas Adolfsson <[email protected]> * Update ws-server/src/server.rs Co-authored-by: Niklas Adolfsson <[email protected]> * Fix bad merge * Test * fmt * fix test * Finish test * Cleanup Add a second subscription to serverless test * Update tests/tests/integration_tests.rs Co-authored-by: Niklas Adolfsson <[email protected]> * simplify test * Review feedback: avoid allocations * cleanup * Remove async-channel * remove async-channel deps Co-authored-by: Niklas Adolfsson <[email protected]>
-
- Feb 22, 2022
-
-
Niklas Adolfsson authored
* fix(rpc module): unsubscribe ethereum pubsub spec * update docs * fix clippy * fix tests
-
- Jan 21, 2022
-
-
David authored
Add a method to RpcModule that transforms the module into a `RpcModule<()>`, i.e. removes the context. (#660) * Add a method to RpcModule, `decontextualize`, that transforms the module into a `RpcModule<()>`, i.e. removes the context. * Merging a module with an empty module cannot fail * fmt * Address grumbles * Cleanup macro * Update core/src/server/rpc_module.rs Co-authored-by: Maciej Hirsz <[email protected]> Co-authored-by: Maciej Hirsz <[email protected]>
-
Niklas Adolfsson authored
* feat(rpc module): add_stream to subscription sink * fix some nits * unify parameters to rpc methods * Update core/src/server/rpc_module.rs * Update tests/tests/integration_tests.rs Co-authored-by: David <[email protected]> * address grumbles * fix subscription tests * new type for `SubscriptionCallback` and glue code * remove unsed code * remove todo * add missing feature tokio/macros * make `add_stream` cancel-safe * rename add_stream and return status * fix nits * rename stream API -> streamify * Update core/src/server/rpc_module.rs * provide proper close reason * spelling * consume_and_streamify + docs * fmt * rename API pipe_from_stream * improve logging; indicate which subscription method that failed Co-authored-by: David <[email protected]>
-
- Dec 21, 2021
-
-
Niklas Adolfsson authored
* PoC * introduce IdProvider trait * revert Cow stuff * Update ws-server/src/server.rs * fix tests * cargo fmt * use 'static lifetime in SubscriptionId * fix tests * fmt * make tests compile again * fix tests * Fix tests * Move IdProvider impls to own module * move `sub-id gen` types to `core` * fix doc links * make rand non-optional dep * feature gate: id provider Co-authored-by: David Palm <[email protected]>
-
- Dec 17, 2021
-
-
Maciej Hirsz authored
* Nuke V2 * fmt * Formatting and imports * Updated benches * Fix doc comment link * Brace imports in ws-server * Reworking imports * std first * fmt * std on top * Update to match changed line numbers * Rename jsonrpsee_utils -> jsonrpsee_core * Migrating things types -> core * RpcError -> ErrorResponse * Merge types::client into core::client * Continued move types -> core * Removing features to make checks pass * Move rpc_module tests to tests crate * Fixed doc comment links * Add futures-util dependency for client * Remove dead code Co-authored-by: Niklas Adolfsson <[email protected]> * fmt * Feature gate the Client trait * Move `Client` traits to `client` module Co-authored-by: Niklas Adolfsson <[email protected]>
-
- Feb 26, 2020
-
-
Pierre Krieger authored
* Merge all the crates into one * Rustfmt * Fix examples * Fix tests
-
- Feb 19, 2020
-
-
Pierre Krieger authored
* Prepare core for no_std support * Fix missing documentation thingies * Rustfmt * For some reason my local rustfmt didn't pick up these changes * Fix compilation * Rustfmt
-
Qinxuan Chen authored
* Replace err-derive with thiserror * Remove some useless dependencies Signed-off-by: koushiro <[email protected]>
-
- Jan 03, 2020
-
-
Pierre Krieger authored
* Rename Client/Server -> RawClient/RawServer * SharedClient/Server -> Client/Server * Rename http/ws constructors * Rustfmt * Fix some bad renames * Rustfmt * More fixing
-
Pierre Krieger authored
* Add a SharedServer * More work * More work * More work * Make it work * Copyright update * Finish work
-
- Nov 22, 2019
-
-
Pierre Krieger authored
* RawClient -> TransportClient * RawServer -> TransportServer * Rustfmt
-
- Nov 19, 2019
-
-
Pierre Krieger authored
* Allow closing a subscription from the client side * Rustfmt
-
- Nov 18, 2019
-
-
Pierre Krieger authored
-
- Nov 15, 2019
-
-
Pierre Krieger authored
* Run rustfmt on core * Apply rustfmt on ws * Apply rustfmt on proc-macro
-
- Nov 14, 2019
-
-
Pierre Krieger authored
* Servers can no longer error * Add comment about errors * Fix comment
-
- Oct 29, 2019
-
-
Pierre Krieger authored
* Add license header everywhere * Update company name * Fix bad merge
-
- Oct 07, 2019
-
-
Pierre Krieger authored
-
Pierre Krieger authored
-
- Oct 02, 2019
-
-
Pierre Krieger authored
* Rework the Client to support multiple concurrent requests * Restore proc-macro functionnality * More work * More work * Work on the Server subscriptions system * More work on design * More work * More work * Even more work * Subscriptions working * Dix docs * More test fix * Fix server-sent subscription notifications * Add some server tests * Subscriptions pending system working * Remove TODO from tests * Implement close() correctly * Add comment on close() * Fix proc macro * Fix doctest * Fix local doctest
-
- Sep 23, 2019
-
-
Pierre Krieger authored
* Add a SubscriptionsClosed server event * Don't attempt to send back response if connection is closed * Implement into_subscription
-
Pierre Krieger authored
* Refactor RawServer to return RawServerEvent * Fix docs
-
Pierre Krieger authored
* Wrap common::Notification around * Rename ServerRequestParams to Params * Fix tests
-
- Sep 19, 2019
-
-
Pierre Krieger authored
-
- Sep 18, 2019
-
-
Pierre Krieger authored
* RawServer::supports_resuming now returns a Result * Add a local client/server * Fix build and docs * Fix doctest
-
- Sep 16, 2019
-
-
Pierre Krieger authored
-
Pierre Krieger authored
-
Pierre Krieger authored
-
Pierre Krieger authored
-
Pierre Krieger authored
-
Pierre Krieger authored
-