send messag on reconnect

This commit is contained in:
Peter Maquiran
2024-08-07 15:36:15 +01:00
parent bbacc35b08
commit d55450ccbb
3 changed files with 21 additions and 9 deletions
@@ -8,6 +8,7 @@ import { MessageOutPutDataDTO } from '../../data/dto/message/messageOutputDTO';
import { MessageDeleteInputDTO } from '../../data/dto/message/messageDeleteInputDTO';
import { object, z } from 'zod';
import { switchMap } from 'rxjs/operators';
import { Result } from 'neverthrow';
const { App } = Plugins;
@@ -145,7 +146,7 @@ export class SignalRService {
return this.connectingSubject.asObservable();
}
async sendMessage(data: Object) {
async sendMessage<T>(data: Object): Promise<Result<T, any>> {
return await this.connection.sendMessage(data as any)
}