Class EngineIoWebSocket

java.lang.Object
io.socket.engineio.server.Emitter
io.socket.engineio.server.EngineIoWebSocket

public abstract class EngineIoWebSocket extends Emitter
Adapter between different WebSocket implementations and Engine.IO.
  • Constructor Details

    • EngineIoWebSocket

      public EngineIoWebSocket()
  • Method Details

    • getQuery

      public abstract Map<String,String> getQuery()
      Get the query of the initial HTTP request.
      Returns:
      Query parameters of the initial HTTP request.
    • getConnectionHeaders

      public abstract Map<String,List<String>> getConnectionHeaders()
      Get the headers in the initial HTTP request.
      Returns:
      Headers of the initial HTTP request.
    • write

      public abstract void write(String message) throws IOException
      Write a string to the WebSocket and send to remote client.
      Parameters:
      message - String payload to send.
      Throws:
      IOException - On write error.
    • write

      public abstract void write(byte[] message) throws IOException
      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.