onCancelled

fun onCancelled(connectionId: String, reason: String? = null)

A host-initiated cancel is not a failure: it closes the connection like onClosed but with its own SocketLifecycleType.CANCELLED event so it reads as intentional, not an error.