# 使用spring-boot-websocket示例 **Repository Path**: ajobs/spring-boot-websocket ## Basic Information - **Project Name**: 使用spring-boot-websocket示例 - **Description**: 使用spring-boot-starter-websocket 和 socketJs 实现的一个简单的长连接,前端页面位置在“src/main/resources/html/socket.html” - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2025-03-12 - **Last Updated**: 2025-03-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: websocket-socketJS ## README - 前端文件位置(聚焦在这就能看懂):src/main/resources/html/socket.html - 后端代码位置: - websocket配置: ajobs.websocket.main.WebSocketConfig - 监听websocket的创建连接和断开连接:ajobs.websocket.main.WebSocketEventListener - 处理前端订阅和发送的请求:ajobs.websocket.main.WebSocketController