(req ziface.IRequest)
| 181 | } |
| 182 | |
| 183 | func (br *CloseConnectionBeforeSendMsgRouter) Handle(req ziface.IRequest) { |
| 184 | connection := req.GetConnection() |
| 185 | msg := "Zinx server response message for CloseConnectionBeforeSendMsgRouter" |
| 186 | connection.Stop() |
| 187 | _ = connection.SendMsg(1, []byte(msg)) |
| 188 | fmt.Println("send: ", msg) |
| 189 | } |
| 190 | |
| 191 | func TestCloseConnectionBeforeSendMsg(t *testing.T) { |
| 192 | s := NewServer() |
nothing calls this directly
no test coverage detected