public class WebSocketImpl extends WebSocketTimeoutBase
构造器和说明 |
---|
WebSocketImpl(org.java_websocket.WebSocket real) |
限定符和类型 | 方法和说明 |
---|---|
void |
close()
关闭
|
boolean |
isSecure()
是否安全
|
boolean |
isValid()
是否有效
|
java.net.InetSocketAddress |
localAddress()
获取本地地址
|
java.net.InetSocketAddress |
remoteAddress()
获取远程地址
|
java.util.concurrent.Future<java.lang.Void> |
send(java.nio.ByteBuffer binary)
发送字节
|
java.util.concurrent.Future<java.lang.Void> |
send(java.lang.String text)
发送文本
|
getIdleTimeout, onReceive, onSend, setIdleTimeout
public boolean isValid()
WebSocket
public boolean isSecure()
WebSocket
public java.net.InetSocketAddress remoteAddress() throws java.io.IOException
WebSocket
java.io.IOException
public java.net.InetSocketAddress localAddress() throws java.io.IOException
WebSocket
java.io.IOException
public java.util.concurrent.Future<java.lang.Void> send(java.lang.String text)
WebSocket
text
- 文本public java.util.concurrent.Future<java.lang.Void> send(java.nio.ByteBuffer binary)
WebSocket
binary
- 二进制public void close()
WebSocket
close
在接口中 WebSocket
close
在类中 WebSocketBase