class WebSocket : Client
WebSocket VenueNext
Created on 3/18/19. Copyright © 2019 VenueNext Inc. All rights reserved.
Listener |
interface Listener |
<init> |
WebSocket VenueNext WebSocket(uri: URI, listener: Listener?, extraHeaders: List<BasicNameValuePair>?) |
extraHeaders |
val extraHeaders: List<BasicNameValuePair>? |
listener |
val listener: Listener? |
uri |
val uri: URI |
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 |