leave

suspend fun leave(timeout: Long = this.timeout): Push

Tries to leave the Channel with the specified timeout.

Will try to send a Push to the server with an Event.LEAVE event and tryEmit an Event.CLOSE event to the Channel collector.

Return

Push

Parameters

timeout

an optional Long value defining the duration after which a timeout event will be triggered.