Commit Graph

20 Commits

Author SHA1 Message Date
Derrick Hammer 1da4a4967e
fix: fix broadcasting to find peers on topic correctly, and use the discovery object to refresh if required 2023-06-19 02:31:53 -04:00
Derrick Hammer 0a335997bf
*Fix check 2022-12-31 14:21:14 -05:00
Derrick Hammer 9b2e04ae3c
*switch to _seenTopics since they are stored in hex already 2022-12-31 14:21:04 -05:00
Derrick Hammer 7c2e6d1df8
*Refactor to only broadcast to peers listening on our topic hash 2022-12-30 16:04:17 -05:00
Derrick Hammer ef79936384
*Update to track symbol and sockets per instance 2022-12-30 00:02:47 -05:00
Derrick Hammer 7b920bf2f5
*Update protobuf 2022-12-30 00:00:50 -05:00
Derrick Hammer ead991f9af
*Change closedMap to a Set
*If we dont have the peer in the closedMap, add it
2022-12-05 04:46:33 -05:00
Derrick Hammer ce1854de83
*Track peer closed handlers outside of protomux with a map 2022-11-27 03:34:26 -05:00
Derrick Hammer f82a689e0f
*Bug fix channel opening 2022-11-26 18:09:20 -05:00
Derrick Hammer 2d62822908
*Allow protocol to be configurable 2022-11-16 02:41:37 -05:00
Derrick Hammer 175d66c994
Revert "*Change ondestroy to onclose"
This reverts commit 9d90468b82.
2022-11-16 02:32:41 -05:00
Derrick Hammer 9d90468b82
*Change ondestroy to onclose 2022-11-16 01:50:04 -05:00
Derrick Hammer ee4c552fb4
*Export FLOOD_SYMBOL 2022-11-16 01:33:26 -05:00
Derrick Hammer d61076be57
*add send method to broadcast to one peer 2022-11-15 15:53:04 -05:00
Derrick Hammer 34d55db3b1
*Ensure data is a buffer 2022-11-15 15:48:14 -05:00
Derrick Hammer aab5254ef2
*Add prettier 2022-11-15 14:28:28 -05:00
Derrick Hammer 8d57c62994
*Add peer-open and peer-remove events 2022-11-15 14:27:43 -05:00
Derrick Hammer 9c7dc7dad8
*switch to protobuf-ts 2022-11-15 14:22:11 -05:00
Derrick Hammer 576ebdc09a
*Remove unneeded field mux 2022-11-15 12:39:47 -05:00
Derrick Hammer 76731d4354
*Initial version 2022-11-15 06:34:01 -05:00