
websockt
橘子海之石
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
websocket 第四篇 循环输出的 换一种方式转发到 topic
1、controller类这么写 @Controller public class V2GameInfoController { @Autowired private WebSocketService ws; //不是sendto 的模式,那样只能写很多个,复制张贴复制张贴。用这种方式SimpMessagingTemplate可以在业务层处理 @MessageMapping...原创 2019-11-08 12:16:52 · 667 阅读 · 0 评论 -
websocket 第三篇
游戏版本公告系统 http://localhost:8080/v1/index.html http://localhost:8080/v1/admin.html 1、上面两个连接 连接上endpoint 基站 之后 app.js里面 发送到这个"/app/v1/chat" 渠道 function sendName() { stompClient.send("/app/...原创 2019-11-08 11:59:46 · 152 阅读 · 0 评论 -
websocket 第二篇
参考文章:https://spring.io/guides/gs/messaging-stomp-websocket/ 打不开页面http://localhost:8080/index.html 1、换一个版本就行了 <parent> <groupId>org.springframework.boot</groupId> <arti...原创 2019-11-08 11:37:38 · 248 阅读 · 0 评论 -
websocket 第一篇入门 springboot启动
package com.tx; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.stereotype.Controller; import org...原创 2019-11-08 11:19:31 · 213 阅读 · 0 评论