mirror of https://github.com/OpenVidu/openvidu.git
22 lines
509 B
TypeScript
22 lines
509 B
TypeScript
![]() |
import { Injectable } from '@angular/core';
|
||
|
import { Subject } from 'rxjs/Subject';
|
||
|
|
||
|
@Injectable()
|
||
|
export class TestFeedService {
|
||
|
|
||
|
lastEvent;
|
||
|
newLastEvent$ = new Subject<any>();
|
||
|
|
||
|
constructor() { }
|
||
|
|
||
|
getLastEvent() {
|
||
|
return this.lastEvent;
|
||
|
}
|
||
|
|
||
|
pushNewEvent(session: string, connection: string, event: string, eventContent: string) {
|
||
|
this.lastEvent = ({ session: session, connection: connection, event: event, eventContent: eventContent });
|
||
|
this.newLastEvent$.next(this.lastEvent);
|
||
|
}
|
||
|
|
||
|
}
|