历史数据添加日期查询插件

This commit is contained in:
zhouyuejun
2018-12-20 15:45:20 +08:00
parent 633f3fb560
commit 7f4e0ced52
15 changed files with 601 additions and 630 deletions
+4
View File
@@ -17,6 +17,10 @@ export class WebsocketService {
}
this.websocket = new WebSocket(url);
setInterval(() => {
let msg = { "topic": "heart-beat", "message": "" };
this.websocket.send(JSON.stringify(msg));
}, 30000);
return new Observable(ob => {
this.websocket.onopen = () => {
console.log('websocket was connected...')