Commit Graph

97 Commits

Author SHA1 Message Date
Derrick Hammer 4e504124b2
*update module hash 2023-03-18 14:42:22 -04:00
Derrick Hammer 44b9842ea9
*add dht getter that returns a mock object including ready 2023-03-18 13:55:33 -04:00
Derrick Hammer acc2ed4db3
*Update module hash 2023-03-16 14:24:41 -04:00
Derrick Hammer 36dd596aab
*Methods not needed 2023-02-17 21:05:28 -05:00
Derrick Hammer 7028609da4
*Set hash length to 32 2023-02-17 21:03:42 -05:00
Derrick Hammer 4977f88d55
*Mixed up code 2023-02-17 20:06:46 -05:00
Derrick Hammer 232f82d828
*Support strings in join with nobile blake2b hashing 2023-02-17 20:04:21 -05:00
Derrick Hammer df63f8be30
*Add persistent tracking of topics 2023-02-17 19:35:56 -05:00
Derrick Hammer b98db98b6a
*Missing await 2023-02-17 16:50:05 -05:00
Derrick Hammer 6f30bb7faa
*set maxAttempts to Number.MAX_SAFE_INTEGER 2023-02-17 11:28:07 -05:00
Derrick Hammer ff7266f05e
*Switch to backoff.js 2023-02-17 09:25:58 -05:00
Derrick Hammer b76aa38f76
*Move listenConnections call to private method that will do a backoff connection after returning 2023-02-17 08:49:35 -05:00
Derrick Hammer d3460ae956
*Move backoff reset to the ready method 2023-02-17 08:31:24 -05:00
Derrick Hammer a7384cf688
*Listen for connections before waiting for ready 2023-02-17 08:20:02 -05:00
Derrick Hammer ba0832588d
*Refactor start 2023-02-17 08:08:43 -05:00
Derrick Hammer db894376eb
*Add connection retry with backoff support 2023-02-16 21:47:49 -05:00
Derrick Hammer 1786e56380
*Change createSocket to call setup which will fetch socket info from socketGetInfo and setup as mock objects 2023-02-06 05:25:00 -05:00
Derrick Hammer 1f76aef53a
*Change socket close module method name to be consistent with the rest 2023-02-06 03:49:48 -05:00
Derrick Hammer e84b009244
*Change socket listen module method name to be consistent with the rest 2023-02-06 03:35:04 -05:00
Derrick Hammer e211fa3b48
*Fix write module call name 2023-02-06 03:33:44 -05:00
Derrick Hammer 875ba862f0
*Use createSocket not createClient 2023-02-06 03:26:06 -05:00
Derrick Hammer fe04cbe10d
*On the ready method, setup a connection to the swarm module to listen for new connections 2023-02-06 03:13:32 -05:00
Derrick Hammer 2bcd37e271
*Properly overload eventemitter3 methods 2023-02-06 03:11:42 -05:00
Derrick Hammer 994cab10bc
*Make async 2023-02-01 14:08:11 -05:00
Derrick Hammer 7fa2a83141
*Join added to the wrong class 2023-02-01 14:06:13 -05:00
Derrick Hammer b252b331ad
*Add join api 2023-02-01 14:00:08 -05:00
Derrick Hammer a0279262b1
*Update module hash 2023-02-01 12:33:17 -05:00
Derrick Hammer 9354fbebbd
*Update module hash 2023-02-01 12:09:11 -05:00
Derrick Hammer 4359c590ba
*Add init method 2023-02-01 08:47:19 -05:00
Derrick Hammer b567d70dda
*rewrite for new design 2023-02-01 07:54:20 -05:00
Derrick Hammer b5a81d51ab
Revert "*Change end to close"
This reverts commit 14d6888baf.
2022-08-31 20:38:28 -04:00
Derrick Hammer 14d6888baf
*Change end to close 2022-08-31 20:34:41 -04:00
Derrick Hammer 557fb887d2
*Remove random import 2022-08-14 07:58:13 -04:00
Derrick Hammer f404dff8eb
*add getRelays and getRelayServers methods 2022-08-14 07:32:37 -04:00
Derrick Hammer 4f21ab970d
*Check if socket exists before closing to prevent errors on possible race conditions 2022-08-03 22:26:34 -04:00
Derrick Hammer 395edfe75a
*dht missing on connect call 2022-08-03 21:36:30 -04:00
Derrick Hammer bf70a54b31
*dht id is nested 2022-08-03 21:09:24 -04:00
Derrick Hammer 85fb05b854
*Add setup method and use it in all methods 2022-08-03 12:36:58 -04:00
Derrick Hammer 20c55f94ad
*Set id to 0 2022-08-03 12:27:47 -04:00
Derrick Hammer f76391d46e
*prettier 2022-08-03 12:05:10 -04:00
Derrick Hammer 9071ed0592
*add support for creating a DHT connection or using the default 2022-08-03 12:04:53 -04:00
Derrick Hammer 018c9f0387 *Load callModule and connectModule on the fly 2022-07-21 00:56:04 -04:00
Derrick Hammer 179bef1f9f *Add removeRelay and clearRelays API methods 2022-07-20 18:03:10 -04:00
Derrick Hammer 200221e742 *Add more safety checks on window 2022-07-20 17:23:48 -04:00
Derrick Hammer 2437037a14 *Wrap err in Error 2022-07-20 03:26:55 -04:00
Derrick Hammer afc332b75e *Add addRelay interface method 2022-07-19 22:59:07 -04:00
Derrick Hammer 9b4ac8ff93 *Initial version 2022-07-19 21:38:29 -04:00