A view of the collected statistics for a session.
Type:
bigintA timestamp indicating when the session was created. Read only.
Type:
bigintA timestamp indicating when the session was destroyed. Read only.
Type:
bigintA timestamp indicating when
close() was called. Read only.Type:
bigintA timestamp indicating when the DTLS handshake completed. Read only.
Type:
bigintThe total number of application data bytes received. Read only.
Type:
bigintThe total number of application data bytes sent. Read only.
Type:
bigintThe total number of application messages received. Read only.
Type:
bigintThe total number of application messages sent. Read only.
Type:
bigintThe total number of DTLS handshake retransmissions. Read only.
Type:
booleantrue if the stats object is still connected to the underlying session.
Once the session is destroyed, the stats become a stale snapshot.
Attributes
Set to receive application data from the peer.
Attributes
Set to receive error notifications.
Attributes
Set to receive handshake completion notifications.
Attributes
Set to receive TLS key log lines (for debugging with Wireshark).
session[Symbol.asyncDispose](): void
Equivalent to calling session.close().