public class SessionGroupManager extends Object
| 构造器和说明 |
|---|
SessionGroupManager(org.springframework.beans.factory.BeanFactory beanFactory,
WebsocketProperties properties) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
addSession(String path,
IWsSession<?> iWsSession) |
<T> ConcurrentLinkedDeque<IWsSession<?>> |
getSession(T userId,
String path)
获取用户在当前机器上建立的连接
|
protected void |
releaseChannel(io.netty.channel.ChannelHandlerContext ctx) |
<U> void |
sendBinary(U userId,
String path,
byte[] data) |
protected <U> void |
sendMessage(U userId,
String path,
byte[] data,
MessageType messageType) |
<U> void |
sendText(U userId,
String path,
String data) |
public SessionGroupManager(org.springframework.beans.factory.BeanFactory beanFactory,
WebsocketProperties properties)
protected void addSession(String path, IWsSession<?> iWsSession)
public <T> ConcurrentLinkedDeque<IWsSession<?>> getSession(T userId, String path)
public <U> void sendBinary(U userId,
String path,
byte[] data)
protected <U> void sendMessage(U userId,
String path,
byte[] data,
MessageType messageType)
protected void releaseChannel(io.netty.channel.ChannelHandlerContext ctx)
Copyright © 2022. All rights reserved.