Derrick Hammer
|
a1afba565e
|
*Update dist
|
2023-02-01 08:15:36 -05:00 |
Derrick Hammer
|
9d14579ae9
|
*Add a mutex lock so we are only ever attempting 1 bootup at a time
*Only try to process relays when we have one
|
2023-02-01 08:15:16 -05:00 |
Derrick Hammer
|
5a49d74b77
|
*Update dist
|
2023-02-01 05:01:12 -05:00 |
Derrick Hammer
|
af76d85983
|
*Need to wrap DhtNode in a hyperswarm instance
|
2023-02-01 05:00:51 -05:00 |
Derrick Hammer
|
17ca564f43
|
*dht-relay ready is on the main object, dht object does not exist
|
2023-02-01 04:57:22 -05:00 |
Derrick Hammer
|
9ae03e12e2
|
*Update dist
|
2023-02-01 04:51:05 -05:00 |
Derrick Hammer
|
5472397958
|
*Need to pass arguments as a spread
|
2023-02-01 04:50:55 -05:00 |
Derrick Hammer
|
6a843447b1
|
*Update dist
|
2023-02-01 04:42:29 -05:00 |
Derrick Hammer
|
cc7c7c8edf
|
*Only run loop while this._activeRelay is not set
|
2023-02-01 04:41:45 -05:00 |
Derrick Hammer
|
21fb795488
|
*Update dist
|
2023-01-31 08:49:16 -05:00 |
Derrick Hammer
|
9b815444e1
|
*If discover returns false, treat like an error
|
2023-01-31 08:48:47 -05:00 |
Derrick Hammer
|
2b836207ab
|
*Update @lumeweb/kernel-peer-discovery-client
|
2023-01-31 08:15:18 -05:00 |
Derrick Hammer
|
47ab88f56f
|
*Update deps
|
2023-01-31 08:07:14 -05:00 |
Derrick Hammer
|
f20aafe52e
|
*Update @lumeweb/libkernel-universal
|
2023-01-31 07:49:54 -05:00 |
Derrick Hammer
|
f597e56285
|
*Update @lumeweb/libkernel-universal
|
2023-01-31 07:43:55 -05:00 |
Derrick Hammer
|
ce8edbdaa0
|
*Update dist
|
2023-01-31 07:39:11 -05:00 |
Derrick Hammer
|
5073788529
|
*only use RNG if we have more than 1 relay available
|
2023-01-31 07:38:48 -05:00 |
Derrick Hammer
|
929b64cc1d
|
*Update @lumeweb/kernel-peer-discovery-client
|
2023-01-31 07:24:09 -05:00 |
Derrick Hammer
|
e61bd06454
|
*Update dist
|
2023-01-31 06:58:39 -05:00 |
Derrick Hammer
|
281121b7cc
|
*Add basic eventemitter action queue to process once we have an active relay, or to immediately process if we already have one
|
2023-01-31 06:58:03 -05:00 |
Derrick Hammer
|
bd82046a94
|
*Update dist
|
2023-01-31 05:43:58 -05:00 |
Derrick Hammer
|
e2ab0b8e91
|
*Switch to eventemitter2
|
2023-01-31 05:43:29 -05:00 |
Derrick Hammer
|
a41e162b1d
|
*Update dist
|
2023-01-31 05:10:34 -05:00 |
Derrick Hammer
|
35e394fec4
|
*rewrite for new design
|
2023-01-31 05:10:12 -05:00 |
Derrick Hammer
|
f8b5bcab64
|
*update dist
|
2022-08-14 07:25:37 -04:00 |
Derrick Hammer
|
5276de4363
|
*add getter to return relay servers
|
2022-08-14 07:25:16 -04:00 |
Derrick Hammer
|
8c30190a78
|
*Update dist
|
2022-08-13 20:05:01 -04:00 |
Derrick Hammer
|
f6bcc8ecdb
|
*Delete relay from active list when the raw stream/websocket closes
*Attempt to refill and reconnect to relays if we have 0 active relays in the pool
|
2022-08-13 20:04:35 -04:00 |
Derrick Hammer
|
0120b67c59
|
*move away from node Buffer
|
2022-08-13 20:02:51 -04:00 |
Derrick Hammer
|
c8e320d798
|
*Update dist
|
2022-07-27 00:37:44 -04:00 |
Derrick Hammer
|
21bcebb689
|
*Only choose a random index if we have more than 1 relay
|
2022-07-27 00:37:30 -04:00 |
Derrick Hammer
|
7633e000e6
|
*Update dist
|
2022-07-27 00:12:49 -04:00 |
Derrick Hammer
|
3f843b5266
|
*If server is not available, remove from the available array and call removeRelay.
|
2022-07-27 00:12:41 -04:00 |
Derrick Hammer
|
ad062df383
|
*Update dist
|
2022-07-27 00:05:42 -04:00 |
Derrick Hammer
|
3864465ba2
|
*isServerAvailable is async
|
2022-07-27 00:05:28 -04:00 |
Derrick Hammer
|
3cf6738850
|
*Update dist
|
2022-07-27 00:00:04 -04:00 |
Derrick Hammer
|
1090b203dc
|
*Handle available only having 1 item
|
2022-07-26 23:59:45 -04:00 |
Derrick Hammer
|
7a12d7e4cd
|
*Update dist
|
2022-07-26 23:28:47 -04:00 |
Derrick Hammer
|
cb139131e1
|
*Call updateAvailable in loop
*Check available length and abort and return if empty
|
2022-07-26 23:28:12 -04:00 |
Derrick Hammer
|
00b0fe29f3
|
*Update dist
|
2022-07-26 23:22:34 -04:00 |
Derrick Hammer
|
5f37b74baf
|
*Try to update the available list every loop and only compare max _activeRelays against the min of _maxConnections and available
|
2022-07-26 23:22:10 -04:00 |
Derrick Hammer
|
cb16b87b73
|
Revert "*Store copy of activeRelay size to prevent infinite loop"
This reverts commit 7cb32b716a .
|
2022-07-26 23:13:30 -04:00 |
Derrick Hammer
|
58ba247740
|
Revert "*Update dist"
This reverts commit 8ebaa2a5a5 .
|
2022-07-26 23:13:30 -04:00 |
Derrick Hammer
|
8ebaa2a5a5
|
*Update dist
|
2022-07-26 23:09:44 -04:00 |
Derrick Hammer
|
7cb32b716a
|
*Store copy of activeRelay size to prevent infinite loop
|
2022-07-26 23:09:25 -04:00 |
Derrick Hammer
|
8ee4df8d1b
|
*Update dist
|
2022-07-26 23:00:19 -04:00 |
Derrick Hammer
|
ce575b623c
|
*cast to string
|
2022-07-26 22:58:24 -04:00 |
Derrick Hammer
|
007b9a09d7
|
*Fix usage of connection
|
2022-07-26 22:56:49 -04:00 |
Derrick Hammer
|
b4962e994b
|
*Update dist
|
2022-07-26 22:50:55 -04:00 |
Derrick Hammer
|
8d4be6ec4a
|
*Using wrong map
|
2022-07-26 22:49:46 -04:00 |