| | |
| | | @OnOpen |
| | | public void onOpen(Session session, EndpointConfig config) { |
| | | this.session = session; |
| | | //HttpSession httpSession = (HttpSession) config.getUserProperties().get("httpSession"); |
| | | //UserInf user = (UserInf) httpSession.getAttribute("user"); |
| | | //final int userId = user.getUid(); |
| | | //final int urole = user.getUrole(); |
| | | final int userId = 10001; |
| | | final int urole = 1; |
| | | HttpSession httpSession = (HttpSession) config.getUserProperties().get("httpSession"); |
| | | UserInf user = (UserInf) httpSession.getAttribute("user"); |
| | | final int userId = user.getUid(); |
| | | final int urole = user.getUrole(); |
| | | /*final int userId = 10001; |
| | | final int urole = 1;*/ |
| | | Thread thread = new Thread("Thread_HomeSocket") { |
| | | @Override |
| | | public void run() { |