public abstract class Polling extends Transport
Transport.Options, Transport.ReadyState
Emitter.Listener
Modifier and Type | Field and Description |
---|---|
static String |
EVENT_POLL |
static String |
EVENT_POLL_COMPLETE |
static String |
NAME |
callFactory, EVENT_CLOSE, EVENT_DRAIN, EVENT_ERROR, EVENT_OPEN, EVENT_PACKET, EVENT_REQUEST_HEADERS, EVENT_RESPONSE_HEADERS, extraHeaders, hostname, name, path, port, query, readyState, secure, socket, timestampParam, timestampRequests, webSocketFactory, writable
Constructor and Description |
---|
Polling(Transport.Options opts) |
Modifier and Type | Method and Description |
---|---|
protected void |
doClose() |
protected void |
doOpen() |
protected abstract void |
doPoll() |
protected abstract void |
doWrite(String data,
Runnable fn) |
protected void |
onData(byte[] data) |
protected void |
onData(String data) |
void |
pause(Runnable onPause) |
protected String |
uri() |
protected void |
write(Packet[] packets) |
close, onClose, onError, onOpen, onPacket, open, send
public static final String NAME
public static final String EVENT_POLL
public static final String EVENT_POLL_COMPLETE
public Polling(Transport.Options opts)
Copyright © 2022. All rights reserved.