terminate

fun terminate(): Unit

Overrides WebSocketSession.terminate

Deprecated: Use cancel() instead.

Initiate connection termination immediately. Termination may complete asynchronously.