closeReason

val closeReason: Deferred<CloseReason?>

Overrides DefaultWebSocketSession.closeReason

A close reason for this session. It could be null if a session is terminated with no close reason (for example due to connection failure).