# websocket-springboot **Repository Path**: menghaoji/websocket-springboot ## Basic Information - **Project Name**: websocket-springboot - **Description**: springboot集成websocket和SSE - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2020-02-19 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # websocket-springboot #### 介绍 - SpringBoot集成websocket+zk实现集群服务 - SpringBoot实现SSE推送 ### 特点 - 1.目前已实现聊天室功能 - 2.实现用户的私聊 - 3.实现了SSE推送功能 ### 关于鉴权 我们可以在建立连接的时候传递一个临时ticket,如果ticket合法则能拿到合法的用户信息,然后就能建立连接,否则直接关闭连接 ### 怎么使用 - websocket @ServerEndpoint版本demo: http://localhost:8250/index.html - websocket WebSocketHandler版本demo: http://localhost:8250/ws2.html - sse demo: http://localhost:8250/sse.html ### TODO - 1.集群化改造 - 2.消息类型增强