updated websocket as client broker

This commit is contained in:
Adrian Zürcher
2025-06-19 18:32:47 +02:00
parent b5d9d96c52
commit c85590e5a5
8 changed files with 282 additions and 98 deletions

View File

@@ -56,7 +56,7 @@ func main() {
go func() {
if err := s.ServeHttp(*wsPort); err != nil {
artNetDriver.Log.Error("main", err.Error())
artNetDriver.Log.Error("main", err)
}
}()
@@ -72,7 +72,10 @@ func main() {
// connect to server
for {
artNetDriver.Log.Error("main", artNetDriver.Connect(*serverIp, DriverName, *serverPort))
if err := artNetDriver.Connect(*serverIp, DriverName, *serverPort); err != nil {
artNetDriver.Log.Error("main", err)
}
fmt.Println(555)
time.Sleep(10 * time.Second)
}