- saveSession(String, Session) - 类 中的方法cn.jdevelops.websocket.core.service.CacheService
-
保存用户连接信息
ps: 会根据配置判断是否能多端登录
- saveSession(String, List<Session>) - 类 中的方法cn.jdevelops.websocket.core.service.CacheService
-
保存用户连接信息
ps 不做任何其他判断只会进行保存动作
- sendInfo(String, String) - 类 中的方法cn.jdevelops.websocket.core.service.WebSocketServer
-
给指定用户发送消息
- sendInfoByLikeKey(String, String) - 类 中的方法cn.jdevelops.websocket.core.service.WebSocketServer
-
eg: name:324
name:432
传入 name: 就可以给上面的那个一起发数据(前提这来两个在线)
给指定用户(模糊用户)发送消息
- sendMessage(Session, String) - 类 中的方法cn.jdevelops.websocket.core.service.WebSocketServer
-
发送消息方法
- serverConfigurator() - 类 中的方法cn.jdevelops.websocket.core.scan.EnableAutoScanConfiguration
-
鉴权
- serverEndpointExporter() - 类 中的方法cn.jdevelops.websocket.core.scan.EnableAutoScanConfiguration
-
往 spring 容器中注入ServerEndpointExporter实例
- sessionPools - 类 中的静态变量cn.jdevelops.websocket.core.cache.LocalCache
-
concurrent包的线程安全Set,用来存放每个客户端对应的WebSocketServer对象
websocket session
- setApplicationContext(ApplicationContext) - 类 中的方法cn.jdevelops.websocket.core.config.AuthenticationConfigurator
-
- setEnable(boolean) - 类 中的方法cn.jdevelops.websocket.core.config.WebSocketConfig
-
- setMultipart(boolean) - 类 中的方法cn.jdevelops.websocket.core.config.WebSocketConfig
-
- setOnClose(boolean) - 类 中的方法cn.jdevelops.websocket.core.config.WebSocketConfig
-
- SocketUtil - cn.jdevelops.websocket.core.util中的类
-
SocketUtil
- SocketUtil() - 类 的构造器cn.jdevelops.websocket.core.util.SocketUtil
-
- subOnlineCount() - 类 中的静态方法cn.jdevelops.websocket.core.service.WebSocketServer
-