Address tracking and notification sounds.

This commit is contained in:
softsimon
2020-02-26 04:29:57 +07:00
parent b45f5c31cd
commit 12c9b80a64
13 changed files with 110 additions and 25 deletions

View File

@@ -6,6 +6,7 @@ import { Transaction, Block } from '../../interfaces/electrs.interface';
import { of } from 'rxjs';
import { StateService } from '../../services/state.service';
import { WebsocketService } from '../../services/websocket.service';
import { AudioService } from 'src/app/services/audio.service';
@Component({
selector: 'app-transaction',
@@ -28,6 +29,7 @@ export class TransactionComponent implements OnInit, OnDestroy {
private electrsApiService: ElectrsApiService,
private stateService: StateService,
private websocketService: WebsocketService,
private audioService: AudioService,
) { }
ngOnInit() {
@@ -73,6 +75,7 @@ export class TransactionComponent implements OnInit, OnDestroy {
block_hash: block.id,
block_time: block.timestamp,
};
this.audioService.playSound('magic');
});
}