(conn ziface.IConnection)
| 12 | ) |
| 13 | |
| 14 | func business(conn ziface.IConnection) { |
| 15 | |
| 16 | for { |
| 17 | err := conn.SendMsg(1, []byte("Ping...[FromClient]")) |
| 18 | if err != nil { |
| 19 | fmt.Println(err) |
| 20 | zlog.Error(err) |
| 21 | break |
| 22 | } |
| 23 | |
| 24 | time.Sleep(1 * time.Second) |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | func DoClientConnectedBegin(conn ziface.IConnection) { |
| 29 | zlog.Debug("DoConnectionBegin is Called ... ") |
no test coverage detected