JustSaying
This is a message type, which doesn't require response back.
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) {
console.log(content);
};Send version information
{
type: 'justsaying',
content: {
subject: 'version',
body: {
protocol_version: protocol_version,
alt: alt,
library: name,
library_version: version,
program: program,
program_version: program_version
}
}
}Send free joints
Send a private transaction
Share your node WebSocket URL to accept incoming connections
Ask to verify your WebSocket URL
Verify your WebSocket URL with echo message
Log in to Hub
Get new messages
Remove handled message
Send pairing message
Send message to device
Ask more messages
Light wallet transaction update
Light wallet sequence became bad
Add light wallet to monitor address
Send bug report
Push project number (only accepted from hub)
New version is available (only accepted from hub)
Exchange rates (only accepted from hub)
Ask to update (only accepted from hub)
Watch system variables
Custom JustSaying
Last updated
Was this helpful?