Transport

interface Transport

Interface that defines different types of Transport layers.

Types

Link copied to clipboard
enum ReadyState : Enum<Transport.ReadyState>

Available ReadyStates of a $Transport.

Functions

Link copied to clipboard
abstract fun connect(): SocketFlow

Connect to the server

Link copied to clipboard
abstract fun disconnect(code: Int, reason: String? = null)

Disconnect from the Server

Link copied to clipboard
abstract fun send(data: String)

Sends text to the Server

Properties

Link copied to clipboard
abstract val readyState: Transport.ReadyState

The state of the Transport. See {@link ReadyState}

Inheritors

Link copied to clipboard