Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Bougarfaoui El houcine authored Feb 28, 2017
1 parent 7627cdf commit 36d7bd7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ export class ChatService {
getMessage() {
return this.socket
.fromEvent("message")
.subscribe((message) => {
// todo
});
.map( data => data.msg );
}
}
```
Expand Down Expand Up @@ -162,9 +160,7 @@ class ChatService {
getMessage() {
return this.socket
.fromEvent<any>("message")
.subscribe((message) => {
// todo
});
.map(data => data.msg );
}

close() {
Expand Down

0 comments on commit 36d7bd7

Please sign in to comment.