fix: fixing sudden disconnect for multiple connection

This commit is contained in:
2025-10-27 13:09:16 +07:00
parent b71e8121e2
commit 49a30d3b44
5 changed files with 62 additions and 38 deletions

View File

@@ -35,11 +35,11 @@ func main() {
log.Fatal(err)
}
go func() {
for range wsClient.ReconnectChannel() {
fmt.Println("Reconnection Success")
}
}()
// go func() {
// for range wsClient.ReconnectChannel() {
// fmt.Println("Reconnection Success")
// }
// }()
dataChannel := wsClient.DataChannel()