class XMPP::Client
- XMPP::Client
- Reference
- Object
Included Modules
Defined in:
Constructors
Instance Method Summary
-
#connect
connect triggers actual TCP connection, based on previously defined parameters.
- #disconnect
-
#resume(state : SMState)
Resume attempts resuming a Stream Managed session, based on the provided stream management state
-
#send(packet : String)
send sends an XMPP stanza as a string to the server.
-
#send(packet : Stanza::Packet)
sends marshal's XMPP stanza and sends it to the server.
-
#session : Session
Session gathers data that be access by users of this Shard
Instance methods inherited from module XMPP::EventManager
event_handler : EventHandler?
event_handler,
event_handler=(event_handler : EventHandler?)
event_handler=
Instance methods inherited from module XMPP::StreamClient
connect
connect,
disconnect
disconnect,
event_handler=(handler : EventHandler)
event_handler=,
resume(state : SMState)
resume
Instance methods inherited from module XMPP::Sender
send(packet : String)send(packet : Stanza::Packet) send
Constructor Detail
Instance Method Detail
connect triggers actual TCP connection, based on previously defined parameters. connect simply triggers resumption, with an empty session state.
Resume attempts resuming a Stream Managed session, based on the provided stream management state
send sends an XMPP stanza as a string to the server. It can be invalid XML or XMPP content. In that case, the server will disconnect the client. It is up to the user of this method to carefully craft the XML content to produce valid XMPP.