Skip to content

Commit

Permalink
docs: fix rx subject name in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
a-cordier committed May 16, 2023
1 parent c9cff87 commit 13457cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,19 @@ input.onmidimessage = MIDI.reader({

# ⏳ Subscribing to the messages stream

Once read, messages are exposed through the `stream` rx Subject.
Once read, messages are exposed through the `Rx` Subject.

```typescript
import * as MIDI from 'noon-io';

MIDI.stream.subscribe(message => {
MIDI.Rx.subscribe(message => {
console.log(message.meta); // log the meta object populated by the custom decorator function
});
```

# ⏳ Filtering messages

In addition to the message stream, MIDI provides a convenient `observe` function,
In addition to the message stream, noon-io provides a convenient `observe` function,
which will return a observable of MIDI messages matching the given MIDI status and an optional MIDI chanel.

```typescript
Expand Down

0 comments on commit 13457cd

Please sign in to comment.