From 36d7bd7f57862eacc41ff274e421febbf41597f6 Mon Sep 17 00:00:00 2001 From: Bougarfaoui El houcine Date: Tue, 28 Feb 2017 23:17:34 +0000 Subject: [PATCH] Update README.md --- README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 00dd522..57298a3 100644 --- a/README.md +++ b/README.md @@ -55,9 +55,7 @@ export class ChatService { getMessage() { return this.socket .fromEvent("message") - .subscribe((message) => { - // todo - }); + .map( data => data.msg ); } } ``` @@ -162,9 +160,7 @@ class ChatService { getMessage() { return this.socket .fromEvent("message") - .subscribe((message) => { - // todo - }); + .map(data => data.msg ); } close() {