public interface IWSSessionAuthenticatorManager<U,T extends IWsSession<U>>
| 限定符和类型 | 方法和说明 |
|---|---|
T |
authenticate(io.netty.channel.Channel channel,
io.netty.handler.codec.http.FullHttpRequest req,
String path,
WebsocketProperties properties)
当建立连接时鉴权.
|
default plus.jdk.broadcast.model.Monitor[] |
getAllUdpMonitors(WebsocketProperties properties)
返回当前集群有哪些机器
|
default plus.jdk.broadcast.model.Monitor[] |
getUserConnectedMachine(U userId,
String path,
WebsocketProperties properties)
返回用户和哪些机器建立了连接
|
default void |
onSessionDestroy(IWsSession<?> session,
String path,
WebsocketProperties properties)
当连接断开时,可以通过该回调释放存储的连接数据
|
T authenticate(io.netty.channel.Channel channel, io.netty.handler.codec.http.FullHttpRequest req, String path, WebsocketProperties properties) throws Exception
Exceptiondefault void onSessionDestroy(IWsSession<?> session, String path, WebsocketProperties properties)
session - default plus.jdk.broadcast.model.Monitor[] getUserConnectedMachine(U userId, String path, WebsocketProperties properties)
default plus.jdk.broadcast.model.Monitor[] getAllUdpMonitors(WebsocketProperties properties)
Copyright © 2022. All rights reserved.