Subscribe

Subscribe to WebSocket notifications.

Example

client.subscribe(function(err, result) {
  console.log(result);
});

Here is an example of a notification that you may receive:

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

Last updated