updated websocket as client broker
This commit is contained in:
7
main.go
7
main.go
@@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user