partey_workadventure/front/src/Connexion/WorldFullMessageStream.ts
grégoire parant 925545d74f
Add error message (#970)
- Error link not found
 - Error user was banned
 - Error access dinied on the world
2021-04-29 23:47:30 +02:00

14 lines
335 B
TypeScript

import {Subject} from "rxjs";
class WorldFullMessageStream {
private _stream:Subject<string|null> = new Subject<string|null>();
public stream = this._stream.asObservable();
onMessage(message? :string) {
this._stream.next(message);
}
}
export const worldFullMessageStream = new WorldFullMessageStream();