Class WebSocketImpl

java.lang.Object
org.noear.solon.net.websocket.WebSocketBase
org.noear.solon.server.jetty.websocket.WebSocketImpl
All Implemented Interfaces:
org.noear.solon.net.websocket.WebSocket

public class WebSocketImpl extends org.noear.solon.net.websocket.WebSocketBase
Since:
2.6
Author:
noear
  • Constructor Details

    • WebSocketImpl

      public WebSocketImpl(org.eclipse.jetty.websocket.api.Session real)
  • Method Details

    • isValid

      public boolean isValid()
    • isSecure

      public boolean isSecure()
    • remoteAddress

      public InetSocketAddress remoteAddress() throws IOException
      Throws:
      IOException
    • localAddress

      public InetSocketAddress localAddress() throws IOException
      Throws:
      IOException
    • getIdleTimeout

      public long getIdleTimeout()
    • setIdleTimeout

      public void setIdleTimeout(long idleTimeout)
    • send

      public Future<Void> send(String text)
    • send

      public Future<Void> send(ByteBuffer binary)
    • close

      public void close()
      Specified by:
      close in interface org.noear.solon.net.websocket.WebSocket
      Overrides:
      close in class org.noear.solon.net.websocket.WebSocketBase