watcher-ts/packages/peer
Nabarun Gogoi b9a899aec1
Implement switching endpoints after slow eth_getLogs RPC requests (#525)
* Switch upstream endpoint if getLogs requests are too slow

* Refactor methods for switching client to indexer

* Update codegen indexer template

* Add dummy methods in graph-node test Indexer

* Upgrade package versions to 0.2.101

---------

Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
2024-06-20 17:57:01 +05:30
..
src Add a config option to set gossipub direct peers (#414) 2023-09-22 13:46:20 +05:30
.env.sample Add a basic test to demonstrate a p2p connection (#336) 2023-03-09 17:36:27 +05:30
.eslintignore Implement peer package to send messages between peers (#279) 2023-01-10 20:10:27 +05:30
.eslintrc.json Upgrade dependency versions to remove vulnerabilities from dependabot (#343) 2023-03-28 13:17:53 +05:30
.gitignore Implement peer package to send messages between peers (#279) 2023-01-10 20:10:27 +05:30
.mocharc.yml Add a basic test to demonstrate a p2p connection (#336) 2023-03-09 17:36:27 +05:30
package.json Implement switching endpoints after slow eth_getLogs RPC requests (#525) 2024-06-20 17:57:01 +05:30
README.md Add mobymask-v2-watcher with integrated relay and peer functionality (#327) 2023-02-20 18:09:06 +05:30
tsconfig.json Implement peer package to send messages between peers (#279) 2023-01-10 20:10:27 +05:30

peer

Package used for connecting between peers and send messages

Implementations

  • Discover peers
  • Connect between peers and send messages
  • Use package in browser
  • Use package in server
  • Send messages between systems in different LANs using relay node

Note

  • Avoid any nodejs specific exports from this package as it is intented to be used in browser applications as well

Known Issues

  • peer:disconnect event is not fired when remote peer browser is closed