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, onPacket
public static final String NAME
public WebSocket(EngineIoWebSocket webSocket, Parser parser)
public Map<String,String> getInitialQuery()
Transport
getInitialQuery
in class Transport
public Map<String,List<String>> getInitialHeaders()
Transport
getInitialHeaders
in class Transport
public void onRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Transport
public void send(List<Packet<?>> packets)
Transport
public boolean isWritable()
Transport
isWritable
in class Transport
public String getName()
Transport
Copyright © 2022. All rights reserved.