/** * Handler called after a livechat room is closed. */ export interface ILivechatRoomClosedHander { /** * Method called *after* a livechat room is closed. * * @param livechatRoom The livechat room which is closed. * @param read An accessor to the environment * @param http An accessor to the outside world * @param persistence An accessor to the App's persistence */ [AppMethod.EXECUTE_LIVECHAT_ROOM_CLOSED_HANDLER](data: ILivechatRoom, read: IRead, http: IHttp, persistence: IPersistence): Promise<void>; }
Edit AppListenerManager which is under the server/manager directory:
Add a new case into executeListener method:
1 2 3 4 5 6
... // Livechat case AppInterface.ILivechatRoomClosedHander: this.executeLivechatRoomClosed(data as ILivechatRoom); return; ...
Add executeLivechatRoomClosed method to resolve the events: