Subscribe

Subscribe to WebSocket notifications.
client.subscribe(function(result) {
console.log(result);
});

Example of a notification:

[
'justsaying',
{
subject: 'exchange_rates',
body: {
GBYTE_USD: 117.17363175179999,
GBB_USD: 5.7415079558382
}
}
]

‚Äč