temp uncomment for testing workflow

This commit is contained in:
pakintada@gmail.com 2024-03-29 10:37:03 +07:00
parent fe8465fcaa
commit 9292e175da

View file

@ -30,17 +30,16 @@ export class WebsocketService {
})
}
// public listenTo<T>(topic: string): Observable<T> {
// return this.subject.pipe(
// value => value.topic == topic,
public listenTo<T>(topic: string): Observable<T> {
return this.subject.pipe(
filter((msg: any) => msg.topic === topic),
share()
);
}
// );
// }
// public data = this.subject.pipe(
// share()
// );
public data = this.subject.pipe(
share()
);
public send(url: any){
this.subject.next(url);