peers-connect
v1.1.0
Published
A collection of reusable react components/hooks that handle peers websocket connection and auths
Downloads
729
Readme
PeersConnect
A collection of reusable React components/hooks that handle peers-connection and peer-auths
Installation
npm install peers-connect
or
yarn add peers-connect
There are three major parts in this module.
DetectProviders
- EIP 4361
Sign in with ethereum
- This is a process to let a peer sign a message, which is given by host, and generate a signature.
Websocket Connection
- Once the peer generates the signature, and turns that into a token, the token can be used for websocket connection. It opens a realtime bidirectional communication with both server and other peers.