Skip to content

Commit

Permalink
less is more! simplifying example in README
Browse files Browse the repository at this point in the history
  • Loading branch information
tiholic committed Aug 4, 2020
1 parent 246e02f commit d709f2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ await channel.detach();
Subscribing to channel messages

```dart
Stream<ably.Message> messageStream = channel.subscribe();
StreamSubscription<ably.Message> channelMessageSubscription = messageStream.listen((ably.Message message){
var messageStream = channel.subscribe();
var channelMessageSubscription = messageStream.listen((ably.Message message){
print("New message arrived ${message.data}");
});
```
Expand Down

0 comments on commit d709f2d

Please sign in to comment.