1.1.1 • Published 3 years ago
@dbmx/rpc v1.1.1
@DBMX / rpc
import RPC from '../index'
const url = 'amqp://0.0.0.0:5672'
const dbmxExchange = 'dbmx'
const client = await RPC({ url, dbmxExchange })
const user = await client.call('auth:people:userInfo', { _id: 1 }, { timeout: 2000 })
client.end()