Package io.socket.engineio.server
Class EngineIoWebSocket
java.lang.Object
io.socket.engineio.server.Emitter
io.socket.engineio.server.EngineIoWebSocket
Adapter between different WebSocket implementations and Engine.IO.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.socket.engineio.server.Emitter
Emitter.Listener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidclose()Close the WebSocket.Get the headers in the initial HTTP request.getQuery()Get the query of the initial HTTP request.abstract voidwrite(byte[] message) Write a byte array to the WebSocket and send to remote client.abstract voidWrite a string to the WebSocket and send to remote client.
-
Constructor Details
-
EngineIoWebSocket
public EngineIoWebSocket()
-
-
Method Details
-
getQuery
Get the query of the initial HTTP request.- Returns:
- Query parameters of the initial HTTP request.
-
getConnectionHeaders
Get the headers in the initial HTTP request.- Returns:
- Headers of the initial HTTP request.
-
write
Write a string to the WebSocket and send to remote client.- Parameters:
message- String payload to send.- Throws:
IOException- On write error.
-
write
Write a byte array to the WebSocket and send to remote client.- Parameters:
message- Binary payload to send.- Throws:
IOException- On write error.
-
close
public abstract void close()Close the WebSocket.
-