Subscribe
Subscribe to WebSocket notifications.

Example

1
client.subscribe(function(err, result) {
2
if (err) return console.error(err);
3
console.log(result);
4
});
Copied!
Here is an example of a notification that you may receive:
1
[
2
'justsaying',
3
{
4
subject: 'exchange_rates',
5
body: {
6
GBYTE_USD: 117.17363175179999,
7
GBB_USD: 5.7415079558382
8
}
9
}
10
]
Copied!
Last modified 7mo ago
Copy link