动态消息更新处理

This commit is contained in:
zhouyuejun
2018-12-12 18:27:21 +08:00
parent 8a8ce8a27c
commit 95db4e4450
4 changed files with 667 additions and 157 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ export class WebsocketService {
console.log('websocket was connected...')
}
this.websocket.onmessage = (event) => {
ob.next(event)
ob.next(event.data)
}
this.websocket.onerror = () => {
ob.error("连接失败")