mirror of
https://github.com/cerc-io/watcher-ts
synced 2025-01-08 20:38:05 +00:00
Nabarun Gogoi
90d60f54a6
* Improve connection check with peers by retrying ping on failures * Use DEFAULT_PING_INTERVAL in cli * Log only error message * Add config option to pass peer id file path * Finish retrying pings before connection check interval duration * Handle duplicate connections to relay nodes * Increase default max dial retries from one relay to another * Update connection manager config for relay nodes * Use debug for logs in relay node --------- Co-authored-by: prathamesh0 <prathamesh.musale0@gmail.com> |
||
---|---|---|
.. | ||
src | ||
.eslintignore | ||
.eslintrc.json | ||
.gitignore | ||
package.json | ||
README.md | ||
tsconfig.json |
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