public class VxWebSocketImpl extends WebSocketTimeoutBase
构造器和说明 |
---|
VxWebSocketImpl(io.vertx.core.http.ServerWebSocket real) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
buildUri(io.vertx.core.http.ServerWebSocket req) |
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 java.lang.String buildUri(io.vertx.core.http.ServerWebSocket req)
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