Skip to content

Commit

Permalink
add method listenForRaw
Browse files Browse the repository at this point in the history
  • Loading branch information
yuschang committed May 11, 2018
1 parent 57d0a1f commit 8621f87
Show file tree
Hide file tree
Showing 7 changed files with 1,662 additions and 1,565 deletions.
7 changes: 7 additions & 0 deletions README.md
Expand Up @@ -215,6 +215,13 @@ onMessageSent$.subscribe((chatMessage: ChatMessage) => {
let onMessageSent$ = this.connection.listenFor('ON_MESSAGE_SENT');
onMessageSent$.subscribe( ...
```
### listenForRaw:
When using listenForRaw method, you can cast original data form signalr client callback. Here the listen method returns you the any[] of BroadvastEventListener, that you can then subscribe to.
```
let onMessageSent$ = this.connection.listenForRaw('ON_MESSAGE_SENT');
onMessageSent$.subscribe((data: any[]) => ....);
```

## How to invoke a server method
```
// invoke a server side method
Expand Down

0 comments on commit 8621f87

Please sign in to comment.