fix publication post

This commit is contained in:
Peter Maquiran
2024-03-27 13:35:56 +01:00
parent 37ae4d5325
commit 77315c3fb5
4 changed files with 34 additions and 21 deletions
@@ -139,7 +139,7 @@ class ReconnectingWebSocketSignalR {
if (!this.stop && (!error || error.message !== "Connection stopped by client.")) {
setTimeout(() => {
this.connect();
}, 1000); // Ajuste o atraso conforme necessário
}, 3000); // Ajuste o atraso conforme necessário
}
@@ -407,30 +407,16 @@ export class ObjectMergeNotification{
constructor() {
this.socket.onDisconnectCallback(()=> {
console.log("run watch")
//console.log("run watch")
this.runWatch = true
this.watch()
//this.watch()
})
this.socket.onConnectCallback(()=> {
this.socket.onConnectCallback(() => {
console.log("open trigger")
this.runWatch = false
})
// this.socket.subscribe((data: socketResponse) => {
// if(data.IsCompleted == true) {
// console.log("==================!!!====================")
// try {
// this.callbacks[data.Guid](data)
// delete this.callbacks[data.Guid]
// } catch (error) {}
// } else {
// console.log("else", data)
// }
// })
// this.watch()
}
connect() {