package com.web; import java.util.ArrayList; import java.util.List; import javax.servlet.http.HttpServletRequest; import org.apache.catalina.websocket.StreamInbound; import org.apache.catalina.websocket.WebSocketServlet; public class EchoServlet extends WebSocketServlet { private static final long serialVersionUID = -4104682919545889813L; private static List<MyMessageInbound> socketList = new ArrayList<MyMessageInbound>(); @Override protected StreamInbound createWebSocketInbound(String subProtocol, HttpServletRequest request) { System.out.println("已连接"); return new MyMessageInbound(); } public static synchronized List<MyMessageInbound> getSocketList() { return socketList; } }

wuying8208 LV15
2023年7月1日
WASDZZ LV13
2022年7月25日
sjc199 LV2
2022年6月13日
wanglinddad LV55
2022年4月17日
waityou2000317 LV4
2022年3月10日
luweiyuan LV3
2020年12月8日
doremi LV6
2020年5月17日
dhb123 LV5
2020年5月1日
shiqianxi LV1
2020年2月19日
taylor503 LV6
2019年12月9日

MQ-EQW
2024年12月21日
暂无贡献等级
gxh999810 LV1
2024年12月13日
nghiavudev
2024年11月3日
暂无贡献等级
xxxyyyddd
2024年10月8日
暂无贡献等级
郭宇航裹裹 LV5
2024年6月16日
dafeiyu LV10
2024年3月1日
张英伟
2023年12月29日
暂无贡献等级
3263394665 LV9
2023年12月1日
wuying8208 LV15
2023年7月1日
小白会染色
2023年6月29日
暂无贡献等级