创建连接的时候执行
(conn ziface.IConnection)
| 34 | |
| 35 | // 创建连接的时候执行 |
| 36 | func DoClientConnectedBegin(conn ziface.IConnection) { |
| 37 | //设置两个连接属性,在连接创建之后 |
| 38 | conn.SetProperty("Name", "刘丹冰") |
| 39 | conn.SetProperty("Home", "https://yuque.com/aceld") |
| 40 | |
| 41 | go business(conn) |
| 42 | } |
| 43 | |
| 44 | func wait() { |
| 45 | c := make(chan os.Signal, 1) |
nothing calls this directly
no test coverage detected