public class SocketManager
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TLS |
| Constructor and Description |
|---|
SocketManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
connection(java.lang.String name,
Subscriber subscriber)
Connection subscriber for socket state
|
IChannel |
getChannel(Utils.SOCKET_CHANNELS channel)
Get Channel from Enum
|
void |
getCurrentDevice(Subscriber callback)
Get Current Device
|
void |
getCurrentExperience(Subscriber callback)
Get current Experience
|
|
startSocket()
Start Socket Connection
|
public static final java.lang.String TLS
publicstartSocket()
public void getCurrentExperience(Subscriber callback)
throws org.json.JSONException
callback - org.json.JSONExceptionpublic void getCurrentDevice(Subscriber callback)
throws org.json.JSONException
callback - org.json.JSONExceptionpublic IChannel getChannel(Utils.SOCKET_CHANNELS channel)
channel - public void connection(java.lang.String name,
Subscriber subscriber)
name - subscriber -