om-service-mesh-client
v1.0.2
Published
om-service-mesh-client
Downloads
6
Readme
om-service-mesh-client
om-service-mesh-client
use
const OmServiceMeshClient = require('om-service-mesh-client')({
MASTER_SERVICE_ADDRESS: 'ws://localhost:3000',
serviceId: 'serviceId',
serviceName: 'serviceName',
serviceAddress: 'http://localhost:8080',
});
OmServiceMeshClient.on('config.update', () => console.log('on:config.update'));
OmServiceMeshClient.emit('config.update');