vue中使用Sockjs和stompjs实现实时数据
引入
import SockJS from 'sockjs-client';
import Stomp from 'stompjs';
代码
let socket = new SockJS('api/gcIot-supervise-manholecover/webSocketEndPoint'); // 路径
this.stompClient = Stomp.over(s...
原创
2019-07-02 12:57:27 ·
7219 阅读 ·
1 评论