feat: adding reconnect channel for authentication purposes

This commit is contained in:
2025-09-29 15:45:02 +07:00
parent 9d74e72ede
commit 66b27082b9
2 changed files with 41 additions and 16 deletions

View File

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