WebSocketConnection

class WebSocketConnection : Connection, CoroutineScope

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun connect(endPoint: InetSocketAddress)
open override fun connect(endPoint: InetSocketAddress, timeout: Int)

Connects to the specified end point.

Link copied to clipboard
open override fun disconnect(userInitiated: Boolean)

Disconnects this instance.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun getLocalIP(): InetAddress

Gets the local IP.

Link copied to clipboard
Link copied to clipboard
open override fun getProtocolTypes(): ProtocolTypes
Link copied to clipboard
open override fun send(data: ByteArray)

Sends the specified data packet.