Hello everyone: The version of the golang which I am using is 1.12.9 with Win10. I want to print something while the client is waiting for server. The following are the partial code of server and client.
Server: time.Sleep(time.Second * 100) ws.Write([]byte("Hello!")) Client: while(!ws.Read(msg)){ fmt.Println("Please wait because server is busy.") } Can anyone suggest how to fix the code? Any help is appreciated. Thank you very much! Max -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/c28114f2-c67c-4f8d-a9d8-1c5c6df02c57%40googlegroups.com.