# webSocketDemo **Repository Path**: david25/webSocketDemo ## Basic Information - **Project Name**: webSocketDemo - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-10-29 - **Last Updated**: 2023-10-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # webSocketDemo a webSocket demo by SpringBoot 运行之后测试方法: 1.登录 打开http://localhost:8080/websocket/login?username=guest&password=123 2.连接 localhost:8080/index.html 3.推送消息到客户端 http://localhost:8080/websocket/sendToUser?username=guest&info=%E4%BD%A0%E5%A5%BD ![image-20220317001306331](https://raw.githubusercontent.com/HacahLT/ImageShack/main/blogImg/image-20220317001306331.png)