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() { }
|
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) {
|
setSubscription(val: boolean) {
|
||||||
this.subscribed = val;
|
this.subscribed = val;
|
||||||
let subscription =
|
let subscription =
|
||||||
@@ -51,6 +40,8 @@ export class MatchComponent implements OnInit {
|
|||||||
|
|
||||||
this.dataService.addChatMessage(messageToSend)
|
this.dataService.addChatMessage(messageToSend)
|
||||||
.subscribe(() => {
|
.subscribe(() => {
|
||||||
|
// Nothing to do here
|
||||||
|
// Since is subscribed, caller will also receive the message
|
||||||
console.log('message sent..');
|
console.log('message sent..');
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
|
|||||||
Reference in New Issue
Block a user