public interface WebSocketTransport
| 限定符和类型 | 方法和说明 |
|---|---|
void |
connect(URI url) |
void |
connectSSL(URI url,
String serverCertPath,
String storePass) |
void |
disconnect()
It's the responsibility of implementations to trigger
TransportEventHandler.onDisconnected(boolean) |
void |
sendMessage(org.json.JSONObject msg) |
void |
setHandler(TransportEventHandler events) |
void setHandler(TransportEventHandler events)
void sendMessage(org.json.JSONObject msg)
void connect(URI url)
void connectSSL(URI url, String serverCertPath, String storePass) throws Exception
Exceptionvoid disconnect()
TransportEventHandler.onDisconnected(boolean)Copyright © 2021. All rights reserved.