public abstract class EngineIoWebSocket extends Emitter
Emitter.Listener
Constructor and Description |
---|
EngineIoWebSocket() |
Modifier and Type | Method and Description |
---|---|
abstract void |
close()
Close the WebSocket.
|
abstract Map<String,List<String>> |
getConnectionHeaders()
Get the headers in the initial HTTP request.
|
abstract Map<String,String> |
getQuery()
Get the query of the initial HTTP request.
|
abstract void |
write(byte[] message)
Write a byte array to the WebSocket and send to remote client.
|
abstract void |
write(String message)
Write a string to the WebSocket and send to remote client.
|
public abstract Map<String,String> getQuery()
public abstract Map<String,List<String>> getConnectionHeaders()
public abstract void write(String message) throws IOException
message
- String payload to send.IOException
- On write error.public abstract void write(byte[] message) throws IOException
message
- Binary payload to send.IOException
- On write error.public abstract void close()
Copyright © 2022. All rights reserved.