| 程序包 | 说明 |
|---|---|
| itez.plat.socket.websocket |
| 限定符和类型 | 方法和说明 |
|---|---|
static SocketClient |
WebSocketFactory.getClient(String sid)
根据session.id返回对应的客户端对象
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
WebSocketFactory.addClientCache(SocketClient client) |
void |
SocketServiceDef.offline(Tokens token,
SocketClient client) |
void |
ISocketService.offline(Tokens token,
SocketClient client)
用户离线
|
void |
SocketServiceDef.onError(Tokens token,
SocketClient client,
Throwable error) |
void |
ISocketService.onError(Tokens token,
SocketClient client,
Throwable error)
发生错误
|
void |
SocketServiceDef.online(Tokens token,
SocketClient client) |
void |
ISocketService.online(Tokens token,
SocketClient client)
新用户上线
|
void |
SocketServiceDef.onMessage(SocketClient fromClient,
SocketMsg msg) |
void |
ISocketService.onMessage(SocketClient fromClient,
SocketMsg msg)
新消息
|
Copyright © 2020. All rights reserved.