@jiayi920429/connecttest
v1.0.5
Published
Test
Downloads
8
Readme
CyberConnect
Getting started
Installation
npm install @jiayi920429/connecttest
Basic usage
import CyberConnect from '@jiayi920429/connecttest';
// ethProvider is an Ethereum provider
// address is the current user wallet address
// namespace is the ...
// env decides the endpoints. Now we have staging and production.
const cyberConnect = new CyberConnect(
ethProvider,
address,
'cyberchat',
'production'
);
// Connect
cyberConnect.connect(targetAddr, alias);
// Disconnect
cyberConnect.connect(targetAddr);