WebSocketConnection

open class WebSocketConnection : Connection, WebSocketCMClient.WSListener

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Occurs when the physical connection is established.
Link copied to clipboard
Occurs when the physical connection is broken.
Link copied to clipboard
Occurs when a net message is received over the network.

Functions

Link copied to clipboard
fun connect(endPoint: InetSocketAddress)
open fun connect(endPoint: InetSocketAddress, timeout: Int)
Connects to the specified end point.
Link copied to clipboard
open fun disconnect()
Disconnects this instance.
Link copied to clipboard
Link copied to clipboard
Gets the local IP.
Link copied to clipboard
Link copied to clipboard
open fun onClose(remote: Boolean)
Link copied to clipboard
open fun onData(data: Array<Byte>)
Link copied to clipboard
open fun onError(ex: Exception)
Link copied to clipboard
open fun onOpen()
Link copied to clipboard
open fun send(data: Array<Byte>)
Sends the specified data packet.