Skip to content

Commit

Permalink
Fix wrong listener in README.md (flutter#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
loint authored and nex3 committed May 19, 2018
1 parent c2a2874 commit 3af5422
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 @@ -91,7 +91,7 @@ import 'package:web_socket_channel/io.dart';
main() async {
var channel = new IOWebSocketChannel.connect("ws://localhost:8181");
channel.sink.add("connected!");
channel.sink.listen((message) {
channel.stream.listen((message) {
// ...
});
}
Expand Down Expand Up @@ -120,7 +120,7 @@ import 'package:web_socket_channel/html.dart';
main() async {
var channel = new HtmlWebSocketChannel.connect("ws://localhost:8181");
channel.sink.add("connected!");
channel.sink.listen((message) {
channel.stream.listen((message) {
// ...
});
}
Expand Down

0 comments on commit 3af5422

Please sign in to comment.