Is there an event for clients disconnecting? #271
-
I see in hangar.mast there's a find_stray_craft_loop that checks for fighters whose clients have disconnected. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
Disconnect does not have an event per say. I detect when it occurs by seeing that the client is no longer in the client list. https://github.com/artemis-sbs/sbs_utils/blob/master/sbs_utils/gui.py#L331 This fires what I call a "FakeEvent" which is used more internally. The Story Page then emits a signal "client_disconnect" https://github.com/artemis-sbs/sbs_utils/blob/master/sbs_utils/mast_sbs/maststorypage.py#L725 //signal/client_disconnect
//shared/signal/client_disconnect
on signal client_disconnect Should hangar use that? Maybe. The signal may not have existed. |
Beta Was this translation helpful? Give feedback.
Disconnect does not have an event per say. I detect when it occurs by seeing that the client is no longer in the client list.
https://github.com/artemis-sbs/sbs_utils/blob/master/sbs_utils/gui.py#L331
This fires what I call a "FakeEvent" which is used more internally. The Story Page then emits a signal "client_disconnect"
https://github.com/artemis-sbs/sbs_utils/blob/master/sbs_utils/mast_sbs/maststorypage.py#L725
Should hangar use that? Maybe. The signal may not have existed.