mirror of
https://github.com/chsakell/aspnet-core-signalr-angular.git
synced 2025-12-22 17:27:48 +00:00
minor changes
This commit is contained in:
@@ -19,17 +19,6 @@ export class MatchComponent implements OnInit {
|
||||
|
||||
ngOnInit() { }
|
||||
|
||||
subscribe() {
|
||||
console.log(this.match.Id);
|
||||
this.subscribed = true;
|
||||
//this.feedService.subscribeToFeed(this.match.Id);
|
||||
}
|
||||
|
||||
unsubscribe() {
|
||||
this.subscribed = false;
|
||||
//this.feedService.unsubscribeToFeed(this.match.Id);
|
||||
}
|
||||
|
||||
setSubscription(val: boolean) {
|
||||
this.subscribed = val;
|
||||
let subscription =
|
||||
@@ -51,6 +40,8 @@ export class MatchComponent implements OnInit {
|
||||
|
||||
this.dataService.addChatMessage(messageToSend)
|
||||
.subscribe(() => {
|
||||
// Nothing to do here
|
||||
// Since is subscribed, caller will also receive the message
|
||||
console.log('message sent..');
|
||||
},
|
||||
error => {
|
||||
|
||||
Reference in New Issue
Block a user