I added events to react on connection or disconnection.
Useful if you want to close your "connecting to server" message or display "disconnected from server" error on such event. Closes #94.
I used separate structs instead of enum to make it play nicely with run_if(on_event::<T>()).
I added events to react on connection or disconnection. Useful if you want to close your "connecting to server" message or display "disconnected from server" error on such event. Closes #94. I used separate structs instead of enum to make it play nicely with
run_if(on_event::<T>())
.