com.github.nkzawa.engineio.client
Class Transport
java.lang.Object
com.github.nkzawa.emitter.Emitter
com.github.nkzawa.engineio.client.Transport
- Direct Known Subclasses:
- Polling, WebSocket
public abstract class Transport
- extends Emitter
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EVENT_OPEN
public static final String EVENT_OPEN
- See Also:
- Constant Field Values
EVENT_CLOSE
public static final String EVENT_CLOSE
- See Also:
- Constant Field Values
EVENT_PACKET
public static final String EVENT_PACKET
- See Also:
- Constant Field Values
EVENT_DRAIN
public static final String EVENT_DRAIN
- See Also:
- Constant Field Values
EVENT_ERROR
public static final String EVENT_ERROR
- See Also:
- Constant Field Values
EVENT_REQUEST_HEADERS
public static final String EVENT_REQUEST_HEADERS
- See Also:
- Constant Field Values
EVENT_RESPONSE_HEADERS
public static final String EVENT_RESPONSE_HEADERS
- See Also:
- Constant Field Values
timestamps
protected static int timestamps
writable
public boolean writable
name
public String name
query
public Map<String,String> query
secure
protected boolean secure
timestampRequests
protected boolean timestampRequests
port
protected int port
path
protected String path
hostname
protected String hostname
timestampParam
protected String timestampParam
sslContext
protected SSLContext sslContext
socket
protected Socket socket
readyState
protected Transport.ReadyState readyState
Transport
public Transport(Transport.Options opts)
onError
protected Transport onError(String msg,
Exception desc)
open
public Transport open()
close
public Transport close()
send
public void send(Packet[] packets)
onOpen
protected void onOpen()
onData
protected void onData(String data)
onData
protected void onData(byte[] data)
onPacket
protected void onPacket(Packet packet)
onClose
protected void onClose()
write
protected abstract void write(Packet[] packets)
doOpen
protected abstract void doOpen()
doClose
protected abstract void doClose()
Copyright © 2014. All rights reserved.