class
XMPP::ClientStateIndication
- XMPP::ClientStateIndication
- Reference
- Object
Overview
ClientStateIndication is a high-level client for XEP-0352 - Client State Indication.
A client signals whether it is in the foreground or background by sending
the empty stream nonzas
csi = XMPP::ClientStateIndication.new(client) csi.inactive # move to the background csi.active # return to the foreground
See: https://xmpp.org/extensions/xep-0352.html
Defined in:
xmpp/client_state_indication.crConstructors
Instance Method Summary
-
#active
active tells the server the client has returned to the foreground.
-
#inactive
inactive tells the server the client moved to the background.