mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
send messag on reconnect
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user