@Deprecated public interface WebSocketConnection
| 限定符和类型 | 方法和说明 |
|---|---|
void |
disconnect()
已过时。
断开websocket连接
|
boolean |
isOpen()
已过时。
当前websocket连接是否已经打开
|
void |
setMaxIdleTime(int ms)
已过时。
设置最大闲置时间
|
void |
write(String data)
已过时。
发送文本数据
|
void write(String data) throws IOException
data - 文本信息IOException - 发送出错void disconnect()
boolean isOpen()
void setMaxIdleTime(int ms)
ms - The time in ms that the connection can be idle before closingCopyright © 2019 Alibaba Open Source. All rights reserved.