Commit Graph

14 Commits

Author SHA1 Message Date
Derrick Hammer a7e0fbd190
* Refactor `util.ts` to use `existing.ready` instead of `existing._channel.ready` and replace `existing.ready` with `rpc.ready`. 2023-04-08 16:43:56 -04:00
Derrick Hammer 35c67e1c92
*Bug fix 2023-04-08 15:02:11 -04:00
Derrick Hammer 8f7bd71e09
*Refactor setupStream, make it async, and await on ProtouxRPC ready when it exists in the browser 2023-04-08 14:37:13 -04:00
Derrick Hammer 5e4617ac55
*add new helper maybeGetAsyncProperty to process the kernel client proxies if needed 2023-03-25 10:50:39 -04:00
Derrick Hammer 63270fb1da
*switch from relay-types to interface-relay 2023-03-23 12:48:31 -04:00
Derrick Hammer 01b4a6517a
*Ensure RPC_PROTOCOL_SYMBOL is a string 2023-03-19 11:10:41 -04:00
Derrick Hammer 0dc8eebc7e
*Add setupStream method from relay code to ensure only one RPC instance exists per socket 2023-03-19 10:35:36 -04:00
Derrick Hammer 50f21f0434
*refactor rpc to use new swarm based p2p
*remove wisdom query for now
2023-03-18 12:11:23 -04:00
Derrick Hammer 144e19e635
*Add hashQuery utility function 2022-12-04 05:36:56 -05:00
Derrick Hammer 7263ecf907
*Epic refactor based on new RPC query design and protocol 2022-12-04 02:40:36 -05:00
Derrick Hammer fb849550db
*Heavily refactor to use new RPC schema
*Create basic, wisdom, and streaming rpc request variants
2022-08-27 15:09:34 -04:00
Derrick Hammer 237e5796a8
*If object is null, default to empty object 2022-08-14 09:26:23 -04:00
Derrick Hammer 681d3f4b9f *Ensure object is an array to handle both arrays and objects 2022-07-31 23:11:22 -04:00
Derrick Hammer 5cefe245af *Use custom json flatten algorithm to ensure deterministic hashing 2022-07-31 23:00:17 -04:00