On this page

C

DTLSSession.Stats

History

A view of the collected statistics for a session.

P

sessionStats.createdAt

History
Type:bigint
A timestamp indicating when the session was created. Read only.
P

sessionStats.destroyedAt

History
Type:bigint
A timestamp indicating when the session was destroyed. Read only.
P

sessionStats.closingAt

History
Type:bigint
A timestamp indicating when close() was called. Read only.
P

sessionStats.handshakeCompletedAt

History
Type:bigint
A timestamp indicating when the DTLS handshake completed. Read only.
P

sessionStats.bytesReceived

History
Type:bigint
The total number of application data bytes received. Read only.
P

sessionStats.bytesSent

History
Type:bigint
The total number of application data bytes sent. Read only.
P

sessionStats.messagesReceived

History
Type:bigint
The total number of application messages received. Read only.
P

sessionStats.messagesSent

History
Type:bigint
The total number of application messages sent. Read only.
P

sessionStats.retransmitCount

History
Type:bigint
The total number of DTLS handshake retransmissions. Read only.
P

sessionStats.isConnected

History
Type:boolean

true 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().