Commit Graph

32 Commits

Author SHA1 Message Date
Derrick Hammer 6e61420bfd
*update deps 2023-03-18 14:41:30 -04:00
Derrick Hammer b76f0f12dd
*change close hook to be one time as it does not need to stay hooked, else memory leak 2023-03-18 14:41:20 -04:00
Derrick Hammer 5ea823679f
*remove debug line 2023-02-18 08:44:35 -05:00
Derrick Hammer 2ad6b1fd5d
*Wrap connection event in an init call event to survive the relay being recreated 2023-02-17 22:37:05 -05:00
Derrick Hammer db079ce214
*If we have an active relay, add close hook, else queue on ready hook to add close hook 2023-02-17 19:16:22 -05:00
Derrick Hammer a84ea18680
*Update deps 2023-02-17 08:10:22 -05:00
Derrick Hammer ac7d1a0db5
*only return early if both activeRelay and ready are set 2023-02-17 08:10:14 -05:00
Derrick Hammer 5f733195c4
*Fix typo 2023-02-16 21:57:49 -05:00
Derrick Hammer 2a533d6f7f
*If the dht closes, then remove the connection handler and emit the close event on the swarm 2023-02-16 21:40:40 -05:00
Derrick Hammer 3b6448fec8
*Update deps 2023-02-06 12:33:27 -05:00
Derrick Hammer 379649b006
*Create helper getSwarmToSocketConnectionId
*on join method, disable server mode
*rename handleJoinPeer to handleJoin
*rename handleSocketListenEvent to handleSocketListenEvent
*on socketListenEvent, if setReceiveUpdate is ever called, assume we want to terminate
* Ensure full 64 bit private key is passed to handlePresentSeedModule
*Re-organize api methods
*Add new socket methods
*Add socketGetInfo method which creates an IPV6 address from the pubkey
2023-02-06 12:33:11 -05:00
Derrick Hammer 236e445ff8
*Change ready to init
*Add new ready method that listens for a ready event but returns if activeRelay is set
2023-02-01 12:07:46 -05:00
Derrick Hammer 4e443f4ccb
*Replace dht references with swarm 2023-02-01 08:18:31 -05:00
Derrick Hammer d608392532
*Rewrite to use new design 2023-02-01 07:50:45 -05:00
Derrick Hammer 4a62c94ee3
*Rename package 2023-02-01 07:50:11 -05:00
Derrick Hammer c6497655c7
*Temp build script 2023-02-01 07:49:26 -05:00
Derrick Hammer 44ed118571
*Switch to iife 2023-02-01 07:49:00 -05:00
Derrick Hammer ce3fbcad0b
*Bug fix and improve response handling 2022-09-19 08:11:54 -04:00
Derrick Hammer b25706e8ac
*Update DHT management 2022-08-31 17:14:42 -04:00
Derrick Hammer 4956592d1d
*add getRelayServers api method 2022-08-14 07:28:40 -04:00
Derrick Hammer 37fbd1ee62
*Fix build order 2022-08-14 07:26:50 -04:00
Derrick Hammer 5652eccd1b
*Add method to get current relays in a DHT instance 2022-08-14 06:49:24 -04:00
Derrick Hammer f8229abf66
*Need to shift off the first element from hexToBuf 2022-08-13 20:05:51 -04:00
Derrick Hammer cd33e1508b
*add socketExists api method 2022-08-13 15:12:49 -04:00
Derrick Hammer 4e4a22542f
*Switch from Buffer to hexToBuf 2022-08-13 15:11:18 -04:00
Derrick Hammer 77c473611a
*Support multiple dht connections with a default DHT connection 2022-08-03 12:01:11 -04:00
Derrick Hammer e01d4fc9b5 *Use noise-handshake fork to fix handshake communication bug 2022-07-31 04:10:04 -04:00
Derrick Hammer 5a3e8d7fb5 *Add browser polyfills 2022-07-27 18:46:42 -04:00
Derrick Hammer b351708da7 *Add process global 2022-07-27 18:46:15 -04:00
Derrick Hammer 869f53938b *Override sodium library with WASM version 2022-07-21 14:59:25 -04:00
Derrick Hammer 05f3916b4a *Initial version 2022-07-21 13:03:18 -04:00
Derrick Hammer bb0c5fe92e
Initial commit 2022-06-28 09:14:07 -04:00