partey_workadventure/front/src/Connexion/WorldFullWarningStream.ts

14 lines
288 B
TypeScript
Raw Normal View History

import {Subject} from "rxjs";
class WorldFullWarningStream {
private _stream:Subject<void> = new Subject();
public stream = this._stream.asObservable();
onMessage() {
this._stream.next();
}
}
export const worldFullWarningStream = new WorldFullWarningStream();