()
| 8 | ) |
| 9 | |
| 10 | func main() { |
| 11 | client := znet.NewClient("127.0.0.1", 8999) |
| 12 | |
| 13 | client.SetOnConnStart(func(connection ziface.IConnection) { |
| 14 | _ = connection.SendMsg(1, []byte("hello zinx")) |
| 15 | }) |
| 16 | |
| 17 | client.Start() |
| 18 | |
| 19 | time.Sleep(time.Second) |
| 20 | } |
nothing calls this directly
no test coverage detected