class XMPP::Session

Defined in:

xmpp/session.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(io, config : Config, sm_state : XMPP::SMState, encrypted : Bool = false) #

[View source]

Instance Method Detail

def bind_jid : String #

[View source]
def cipher : String | Nil #

[View source]
def features : Stanza::StreamFeatures #

[View source]
def last_packet_id : Int32 #

[View source]
def packet_id #

[View source]
def resumed? : Bool #

[View source]
def sm_state : SMState #

[View source]
def stream_id : String #

[View source]
def tls_enabled? : Bool #

[View source]
def tls_verified? : Bool #

[View source]
def tls_version : String | Nil #

TLS introspection (RFC 7590 §3.6): the negotiated TLS version, cipher suite, and whether the peer certificate was verified. Nil when the connection is not encrypted.


[View source]