whyclxw
2025-04-19 410f7140939102a11ac5caae3b00a116c5234fa7
src/main/java/com/whyc/webSocket/HomeSocket.java
@@ -44,10 +44,10 @@
    @OnOpen
    public void onOpen(Session session, EndpointConfig config) {
        this.session = session;
        /*HttpSession httpSession = (HttpSession) config.getUserProperties().get("httpSession");
        HttpSession httpSession = (HttpSession) config.getUserProperties().get("httpSession");
        UserInf user = (UserInf) httpSession.getAttribute("user");
        final int userId = user.getUid();*/
        final int userId = 10001;
        final int userId = user.getUid();
        //final int userId = 10001;
        Thread thread = new Thread("Thread_HomeSocket") {
            @Override