public final class WebSocket extends Transport
Emitter.Listener| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
mParser, mReadyState| Constructor and Description |
|---|
WebSocket(EngineIoWebSocket webSocket,
Parser parser) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doClose()
Transport specific logic for closing transport.
|
Map<String,List<String>> |
getInitialHeaders()
Get the headers of the initial HTTP request.
|
Map<String,String> |
getInitialQuery()
Get the query parameters of the initial HTTP request.
|
String |
getName()
Get the name of this transport.
|
boolean |
isWritable()
Checks whether the transport is currently writable.
|
void |
onRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle a client HTTP request.
|
void |
send(List<Packet<?>> packets)
Send a list of packets over the transport.
|
close, onClose, onData, onError, onPacketpublic static final String NAME
public WebSocket(EngineIoWebSocket webSocket, Parser parser)
public Map<String,String> getInitialQuery()
TransportgetInitialQuery in class Transportpublic Map<String,List<String>> getInitialHeaders()
TransportgetInitialHeaders in class Transportpublic void onRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Transportpublic void send(List<Packet<?>> packets)
Transportpublic boolean isWritable()
TransportisWritable in class Transportpublic String getName()
TransportCopyright © 2022. All rights reserved.