|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.nkzawa.emitter.Emitter
com.github.nkzawa.socketio.client.Manager
public class Manager
Manager class represents a connection to a given Socket.IO server.
| Nested Class Summary | |
|---|---|
static interface |
Manager.OpenCallback
|
static class |
Manager.Options
|
| Nested classes/interfaces inherited from class com.github.nkzawa.emitter.Emitter |
|---|
com.github.nkzawa.emitter.Emitter.Listener |
| Field Summary | |
|---|---|
static String |
EVENT_CLOSE
Called on a disconnection. |
static String |
EVENT_CONNECT_ERROR
Called on a connection error. |
static String |
EVENT_CONNECT_TIMEOUT
Called on a connection timeout. |
static String |
EVENT_ERROR
|
static String |
EVENT_OPEN
Called on a successful connection. |
static String |
EVENT_PACKET
|
static String |
EVENT_RECONNECT
Called on a successful reconnection. |
static String |
EVENT_RECONNECT_ATTEMPT
|
static String |
EVENT_RECONNECT_ERROR
Called on a reconnection attempt error. |
static String |
EVENT_RECONNECT_FAILED
|
static String |
EVENT_RECONNECTING
|
static String |
EVENT_TRANSPORT
Called when a new transport is created. |
| Constructor Summary | |
|---|---|
Manager()
|
|
Manager(Manager.Options opts)
|
|
Manager(URI uri)
|
|
Manager(URI uri,
Manager.Options opts)
|
|
| Method Summary | |
|---|---|
Manager |
open()
|
Manager |
open(Manager.OpenCallback fn)
Connects the client. |
boolean |
reconnection()
|
Manager |
reconnection(boolean v)
|
int |
reconnectionAttempts()
|
Manager |
reconnectionAttempts(int v)
|
long |
reconnectionDelay()
|
Manager |
reconnectionDelay(long v)
|
long |
reconnectionDelayMax()
|
Manager |
reconnectionDelayMax(long v)
|
Socket |
socket(String nsp)
Initializes Socket instances for each namespaces. |
long |
timeout()
|
Manager |
timeout(long v)
|
| Methods inherited from class com.github.nkzawa.emitter.Emitter |
|---|
emit, hasListeners, listeners, off, off, off, on, once |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String EVENT_OPEN
public static final String EVENT_CLOSE
public static final String EVENT_PACKET
public static final String EVENT_ERROR
public static final String EVENT_CONNECT_ERROR
public static final String EVENT_CONNECT_TIMEOUT
public static final String EVENT_RECONNECT
public static final String EVENT_RECONNECT_ERROR
public static final String EVENT_RECONNECT_FAILED
public static final String EVENT_RECONNECT_ATTEMPT
public static final String EVENT_RECONNECTING
public static final String EVENT_TRANSPORT
| Constructor Detail |
|---|
public Manager()
public Manager(URI uri)
public Manager(Manager.Options opts)
public Manager(URI uri,
Manager.Options opts)
| Method Detail |
|---|
public boolean reconnection()
public Manager reconnection(boolean v)
public int reconnectionAttempts()
public Manager reconnectionAttempts(int v)
public long reconnectionDelay()
public Manager reconnectionDelay(long v)
public long reconnectionDelayMax()
public Manager reconnectionDelayMax(long v)
public long timeout()
public Manager timeout(long v)
public Manager open()
public Manager open(Manager.OpenCallback fn)
fn - callback.
public Socket socket(String nsp)
Socket instances for each namespaces.
nsp - namespace.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||