14 lines
292 B
TypeScript
14 lines
292 B
TypeScript
|
import {Subject} from "rxjs";
|
||
|
|
||
|
class WorldFullMessageStream {
|
||
|
|
||
|
private _stream:Subject<void> = new Subject();
|
||
|
public stream = this._stream.asObservable();
|
||
|
|
||
|
|
||
|
onMessage() {
|
||
|
this._stream.next();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export const worldFullMessageStream = new WorldFullMessageStream();
|