vncore / com.venuenext.vncore.http / WebSocket

WebSocket

class WebSocket : Client

WebSocket VenueNext

Created on 3/18/19. Copyright © 2019 VenueNext Inc. All rights reserved.

Types

Listener

interface Listener

Constructors

<init>

WebSocket VenueNext

WebSocket(uri: URI, listener: Listener?, extraHeaders: List<BasicNameValuePair>?)

Properties

extraHeaders

val extraHeaders: List<BasicNameValuePair>?

listener

val listener: Listener?

uri

val uri: URI

Functions

connect

fun connect(): Unit

disconnect

fun disconnect(): Unit

initialize

fun initialize(context: Context): Unit

onConnect

fun onConnect(): Unit

onDisconnect

fun onDisconnect(code: Int, reason: String?): Unit

onError

fun onError(error: Exception): Unit

onMessage

fun onMessage(message: String): Unit
fun onMessage(data: ByteArray): Unit

onPong

fun onPong(message: String): Unit

onSuccessfullDisconnect

fun onSuccessfullDisconnect(): Unit

onUnsuccessfullDisconnect

fun onUnsuccessfullDisconnect(ex: Exception): Unit

send

fun send(data: String): Unit
fun send(data: ByteArray): Unit

sendFrame

fun sendFrame(frame: ByteArray?): Unit

setTrustManagers

fun setTrustManagers(tm: Array<TrustManager>): Unit