# springboot-websocket-demo **Repository Path**: duobab/springboot-websocket-demo ## Basic Information - **Project Name**: springboot-websocket-demo - **Description**: websocket 使用最简demo - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-02-26 - **Last Updated**: 2024-11-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![license](https://img.shields.io/github/license/seata/seata.svg)](https://www.apache.org/licenses/LICENSE-2.0.html) [duobab.com](http://www.duobab.com) ## 简介 基于spring boot 编写的 websocket使用最简demo - 拉取代码 - 运行SpringbootWebsocketDemoApplication类中的main方法 - 本地浏览器访问 http://localhost ,点击页面上的 "Connect" 连接 - 浏览器打开新标签页输入 http://localhost/sendMessage , 模拟发送消息 , 在http://localhost 页面就可以看到服务端发送的消息了