forked from voltrue2/mesh-link
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
29 lines (29 loc) · 893 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
'use strict';
const broker = require('./lib/broker');
const so = require('./lib/so');
const logger = require('./lib/logger');
module.exports = {
start: broker.start,
stop: broker.stop,
info: broker.info,
onUpdate: broker.onUpdate,
onUpdated: broker.onUpdated,
onNewNodes: broker.onNewNodes,
setType: broker.setType,
setValue: broker.setValue,
nodeExists: broker.nodeExists,
getType: broker.getType,
getNodesByType: broker.getNodesByType,
getNodeValue: broker.getNodeValue,
getNodeEndPoints: broker.getNodeEndPoints,
getBackupNodes: broker.getBackupNodes,
getNodes: broker.getNodes,
handler: broker.handler,
prepareNodes: broker.prepareNodes,
send: broker.send,
usend: broker.usend,
sharedObject: so,
onLogging: logger.onLogging,
// used ONLY for tests
_pauseAnnouncement: broker._pauseAnnouncement
};