const network = require('ocore/network.js');
const eventBus = require('ocore/event_bus.js');
const ws = network.getInboundDeviceWebSocket(device_address);
// function parameters: websocket, subject, body
network.sendJustsaying(ws, 'custom', 'some data');
eventBus.on('custom_justsaying', function(ws, content) {