send message when websocket open and clear store cache on reset

This commit is contained in:
Matt Hill
2021-08-23 15:04:49 -06:00
committed by Aiden McClelland
parent b34557e8d3
commit a72c1c5499
3 changed files with 2 additions and 5 deletions

View File

@@ -15,8 +15,7 @@ export class WebsocketSource<T> implements Source<T> {
url: this.url,
openObserver: {
next: () => {
console.log('WebSocket connection open')
this.websocket$!.next('open message' as any)
this.websocket$!.next(document.cookie as any)
},
},
}