Derrick Hammer
|
f9bf14d697
|
*Use maybeGetAsyncProperty
|
2023-03-25 11:26:22 -04:00 |
Derrick Hammer
|
1cc1a0d2b1
|
*Use maybeGetAsyncProperty to get remotePublicKey
|
2023-03-25 10:51:29 -04:00 |
Derrick Hammer
|
bb36a80913
|
*Switch to using maybeGetAsyncProperty
|
2023-03-25 10:51: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
|
6b9c865e12
|
*Handle web edge case where .dht returns an async function
|
2023-03-25 09:42:42 -04:00 |
Derrick Hammer
|
63270fb1da
|
*switch from relay-types to interface-relay
|
2023-03-23 12:48:31 -04:00 |
Derrick Hammer
|
92fe42c37e
|
*Return the relay object, not the pubkey
|
2023-03-19 15:11:13 -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
|
065934461e
|
*use once to prevent memory leaks
|
2023-03-18 14:49:05 -04:00 |
Derrick Hammer
|
e9e25b2573
|
*hook close event before querying
|
2023-03-18 14:48:43 -04:00 |
Derrick Hammer
|
52181dabcc
|
*remove unneded import
|
2023-03-18 12:27:32 -04:00 |
Derrick Hammer
|
e417e00794
|
*make relay optional
|
2023-03-18 12:27:19 -04:00 |
Derrick Hammer
|
cce09d1e95
|
*allow a buffer to be passed
|
2023-03-18 12:23:49 -04:00 |
Derrick Hammer
|
9bb3f2ab60
|
*If we are passed a buffer, convert it to hex
|
2023-03-18 12:21:14 -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
|
62a1f9c05f
|
*Cleanup imports
|
2023-02-19 13:09:39 -05:00 |
Derrick Hammer
|
3868286416
|
*Cleanup imports
|
2023-02-19 13:05:05 -05:00 |
Derrick Hammer
|
7afe4cb0bb
|
*Cleanup imports
|
2023-02-19 13:04:41 -05:00 |
Derrick Hammer
|
f0f2118c99
|
*Cleanup imports
|
2023-02-19 13:04:13 -05:00 |
Derrick Hammer
|
5366f85c35
|
*Skip if relay has an error
|
2023-01-06 01:18:50 -05:00 |
Derrick Hammer
|
5de486e680
|
*Handle both an error object and a rpc response object with conditional properties
|
2022-12-04 07:19:00 -05:00 |
Derrick Hammer
|
8c2f857c55
|
*Add cache bypass support for simple query
|
2022-12-04 06:36:18 -05:00 |
Derrick Hammer
|
6429bd513c
|
*refactor query api to use object bags and a dedicated factory at a factory object namespace
|
2022-12-04 06:35:57 -05:00 |
Derrick Hammer
|
fc63e98557
|
*add support for bypassCache in wisdom query
|
2022-12-04 05:39:09 -05:00 |
Derrick Hammer
|
5e1c52352e
|
*Add new query type just for clearing a query hash
|
2022-12-04 05:38:46 -05:00 |
Derrick Hammer
|
144e19e635
|
*Add hashQuery utility function
|
2022-12-04 05:36:56 -05:00 |
Derrick Hammer
|
271a0c2911
|
*Refactor wisdom query to extract setupRelay to be a functional api
|
2022-12-04 05:35:52 -05:00 |
Derrick Hammer
|
a8b0f36d16
|
*activeRelay not needed in network class
|
2022-12-04 02:46:25 -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
|
7a21a5069c
|
*Ensure we don't store an error inside the data property
|
2022-09-22 11:04:15 -04:00 |
Derrick Hammer
|
6fa058d0a0
|
*should be >=
|
2022-09-22 09:37:36 -04:00 |
Derrick Hammer
|
47356ed6e0
|
*If max relays is greater than 0, and we have more relays than max relays, pick a random selection
|
2022-09-22 09:35:15 -04:00 |
Derrick Hammer
|
fa8910a4fd
|
*add maxRelays network option
|
2022-09-22 09:34:07 -04:00 |
Derrick Hammer
|
1d73d23700
|
Revert "*add a _timeoutCanceled property and abort handeTimeout if true"
This reverts commit 309b9b0ac6 .
|
2022-09-20 06:13:38 -04:00 |
Derrick Hammer
|
f9036e1c73
|
Revert "*Switch from clearing the timeout to setting the _timeoutCanceled flag"
This reverts commit b50f7036ff .
|
2022-09-20 06:13:37 -04:00 |
Derrick Hammer
|
b50f7036ff
|
*Switch from clearing the timeout to setting the _timeoutCanceled flag
|
2022-09-18 16:02:39 -04:00 |
Derrick Hammer
|
309b9b0ac6
|
*add a _timeoutCanceled property and abort handeTimeout if true
|
2022-09-18 16:01:51 -04:00 |
Derrick Hammer
|
4478eb3a23
|
*Remove unneeded return
|
2022-09-09 22:25:30 -04:00 |
Derrick Hammer
|
88377a75ce
|
*If the error is a timeout, flag it to the resolve method
|
2022-09-09 22:05:22 -04:00 |
Derrick Hammer
|
62ef56b554
|
*Change how we check/clear the timer
|
2022-09-09 22:04:55 -04:00 |
Derrick Hammer
|
0eb1e33fce
|
*Clear query timer with relay timer
|
2022-09-09 21:20:37 -04:00 |
Derrick Hammer
|
3485a3f533
|
Change how we clear the timer
|
2022-09-09 21:18:02 -04:00 |
Derrick Hammer
|
46f693a1f2
|
*Handle edge case if we have no responses
|
2022-09-09 06:04:02 -04:00 |
Derrick Hammer
|
e151647e8f
|
*If stream is canceled remove listener to prevent repeat cancel messages
|
2022-08-31 20:56:21 -04:00 |
Derrick Hammer
|
bba6fa89be
|
*If the stream is canceled send a message with a cancel property
|
2022-08-31 20:44:47 -04:00 |
Derrick Hammer
|
dafe044e00
|
*Add support for canceling a streaming query and stop the data stream
|
2022-08-31 19:58:44 -04:00 |
Derrick Hammer
|
26fd962090
|
*ensure passed streamHandler overrides options
|
2022-08-31 19:35:04 -04:00 |
Derrick Hammer
|
a4f0f10a85
|
*Add bypassCache to simpleQuery
|
2022-08-30 22:48:46 -04:00 |
Derrick Hammer
|
ac8b1d4bf2
|
*Only close socket when stream is done
|
2022-08-30 22:42:43 -04:00 |