Stop logging each event received
This commit is contained in:
parent
44f611aa6b
commit
da88832870
@ -71,7 +71,6 @@ export default class AttemptList extends Vue {
|
|||||||
|
|
||||||
const attemptStream = new EventSource('/api/stream');
|
const attemptStream = new EventSource('/api/stream');
|
||||||
attemptStream.addEventListener('message', (ev: MessageEvent<string>) => {
|
attemptStream.addEventListener('message', (ev: MessageEvent<string>) => {
|
||||||
console.log(ev);
|
|
||||||
const parsed: LoginAttempt = JSON.parse(ev.data);
|
const parsed: LoginAttempt = JSON.parse(ev.data);
|
||||||
this.attempts.unshift(parsed);
|
this.attempts.unshift(parsed);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user