# WebSocketSpringBoot **Repository Path**: mnz-space/WebSocketSpringBoot ## Basic Information - **Project Name**: WebSocketSpringBoot - **Description**: WebSocket的demo,监控用户上下线 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-07 - **Last Updated**: 2023-12-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 手机端发送消息将设备下线。 1. 启动后端 2. 在resource/static目录下,右击index.html在浏览器运行 手机端请求 `localhost:18801/open/socket/onReceive?id=3?pwd=jae_123` , 服务器发送广播给所有的连接,如果id和自己一样,就把自己的状态设置为下线 绿色代表正常,红色代表异常 预期效果,未接收到请求前----->id为3的提交了异常,id为3的王五变成了红色 ![img.png](img.png)