watcher-ts/packages/peer
prathamesh0 6a8b9a2385
Pass initialization options when starting a peer (#328)
* Pass initialization options when starting a peer

* Update config used for relay and peer nodes in watcher

* Rename types

* Refactor mobymask libp2p message parsing

* Enable laconic debug logs in server command
2023-02-21 17:57:25 +05:30
..
src Pass initialization options when starting a peer (#328) 2023-02-21 17:57:25 +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 Use browser metrics package in peer (#322) 2023-02-20 11:19:57 +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