Subscribe

Request the node to notify you of new joints from a specific main chain index.

Request
Result
Request
const params = {
subscription_id: '1',
last_mci: 2870575
};
client.request('subscribe', params, function(err, result) {
console.log(result);
});
Result
subscribed

You need to subscribe to WebSocket notifications see here to see messages sent to you. Here is an example of a notification:

[
'justsaying',
{
subject: 'joint',
body: {
unit: [Object]
}
}
]