> For the complete documentation index, see [llms.txt](https://obytejs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://obytejs.com/0.1.17/client/subscribe.md).

# Subscribe

### Example

```javascript
client.subscribe(function(err, result) {
  if (err) return console.error(err);
  console.log(result);
});
```

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

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