UNEXPECTED_CONDITION

Deprecated (with error)

Use INTERNAL_ERROR instead.

Replace with

import io.ktor.websocket.CloseReason.Codes.INTERNAL_ERROR
INTERNAL_ERROR