EventHandler is defined to return a std::ops::ControlFlow, and the intent was that ControlFlow::Break would close the connectoon, but none of the backends do.
Future work: We could also extend EventHandler to optionally return an exit code and disconnect reason in the Break case, that will let the server know why the connection was closed.
EventHandler
is defined to return astd::ops::ControlFlow
, and the intent was thatControlFlow::Break
would close the connectoon, but none of the backends do.Future work: We could also extend
EventHandler
to optionally return an exit code and disconnect reason in theBreak
case, that will let the server know why the connection was closed.