watcher-ts/packages/peer
Nabarun Gogoi b07e288756
Ensure connection with peers after going offline (#297)
* Redial relay node on failure and after going offline

* Redial only relay node if not connected

* Refactor and rename methods

* Only close existing connection to relay node

* Hearbeat check only for relay node

* Refactor startHeartbeatCheck method
2023-01-19 15:01:40 +05:30
..
src Ensure connection with peers after going offline (#297) 2023-01-19 15:01:40 +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