
websocket-推送
不会喵的猫
努力做好自己
展开
-
websocket学习
前台: 1、jar包<script src=".../sockjs.min.js"></script> ``<script src=".../stomp.js"></script>2、构造实例 var stompClient = Stomp.over(new SockJS(‘<%=request.getContextPath()%>/ws/sockjs?userid=userid’)原创 2017-11-26 17:32:53 · 331 阅读 · 0 评论 -
netty+websocket
以前写过一片关于springmvc的websocket 由于性能考虑 写一篇 netty+websocket1,什么是netty,怎么搭建netty? 自己去百度点击打开链接2,搭建maven工程,pom.xml依赖 <dependency> <groupId>io.netty</groupId> <artifactI...原创 2018-03-22 11:10:54 · 1188 阅读 · 1 评论