watcher-ts/packages/peer
prathamesh0 9d38306fe9
Federated relay nodes and limiting connections (#296)
* Pass relay node an optional list of relay peers to connect to

* Catch protocol selection failure on dialling to new relay nodes

* Restrict max number of connections for a peer

* Tag the relay node with a high value to avoid disconnects

* Use debug for connect/disconnect logs in relay nodes

* Ignore incomplete multiaddr on a peer discovery

* Increase max connections for a peer to 10

* Refactor and descriptive comments
2023-01-19 11:35:09 +05:30
..
src Federated relay nodes and limiting connections (#296) 2023-01-19 11:35:09 +05:30
.eslintignore Implement peer package to send messages between peers (#279) 2023-01-10 20:10:27 +05:30
.eslintrc.json Implement peer package to send messages between peers (#279) 2023-01-10 20:10:27 +05:30
.gitignore Implement peer package to send messages between peers (#279) 2023-01-10 20:10:27 +05:30
package.json Federated relay nodes and limiting connections (#296) 2023-01-19 11:35:09 +05:30
README.md Implement peer package to send messages between peers (#279) 2023-01-10 20:10:27 +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

Known Issues

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