import webs from 'wq2_sdk/client/web/index'
(async()=>{
const {client} = await webs.initRPCClient('ws://127.0.0.1:8082',{debug:true,reconn_time:3000});
const mgoClient = new webs.MgoClient(client);
const redisClient = new webs.RedisClient(client);
//mongo find
const rs = await mgoClient.find({});
//redis get
const rs1 = await redisClient.get('name')
})()
wq2_sdk
2.1.1 • Public • PublishedPackage Sidebar
Install
npm i wq2_sdk
Weekly Downloads
1
Version
2.1.1
License
ISC
Unpacked Size
38.5 kB
Total Files
16