动态消息更新处理
This commit is contained in:
@@ -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("连接失败")
|
||||
|
||||
Reference in New Issue
Block a user