类 ConfWebSockets
java.lang.Object
com.gdxsoft.easyweb.conf.ConfWebSockets
WebSocket endpoint 配置集合,从 ewa_conf.xml 的 <wss> 节点加载。
<wss>
<ws name="chat" class="com.gdxsoft.ai.app.chatroom.WsChatEndpoint" endpoint="/ws-chat/" configurator="com.gdxsoft.ai.app.chatroom.RvConfigure" />
<ws name="aichat" class="com.gdxsoft.ai.app.chatroom.WsAiChatEndpoint" endpoint="/ws-ai-chat/" configurator="com.gdxsoft.ai.app.chatroom.RvConfigure" />
</wss>
-
方法概要
修饰符和类型方法说明按名称获取配置static ConfWebSockets获取单例,首次调用自动从 ewa_conf.xml 加载。getList()获取所有 endpoint 配置列表intsize()已注册的 endpoint 数量
-
方法详细资料
-
getInstance
获取单例,首次调用自动从 ewa_conf.xml 加载。 -
get
按名称获取配置 -
getList
获取所有 endpoint 配置列表 -
size
public int size()已注册的 endpoint 数量
-