| | |
| | | import org.springframework.stereotype.Component; |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import static com.ruoyi.common.websocket.util.WebSocketUtils.ONLINE_USER_SESSIONS; |
| | |
| | | } |
| | | } |
| | | if (ONLINE_USER_SESSIONS.size() > 0) { |
| | | WebSocketUtils.sendMessageAll(list.toString()); |
| | | Map<String, Object> sendMap=new HashMap<>(); |
| | | sendMap.put("command",10000); |
| | | sendMap.put("ptz",list); |
| | | WebSocketUtils.sendMessageAll(sendMap); |
| | | } |
| | | } |
| | | } |