Example #1
0
 constructor() {
   this._subscriptions = new UniversalDisposable();
   this._nodeSocketServer = new WebSocketServer();
   this._subscriptions.add(this._nodeSocketServer);
   this._close$ = new Subject();
   this._close$.first().subscribe(() => { this.dispose(); });
 }
Example #2
0
 onSessionEnd(callback: () => mixed): IDisposable {
   return new UniversalDisposable(this._close$.first().subscribe(callback));
 }