Skip to content
Snippets Groups Projects
Commit df5a8b57 authored by jvanboxtel@wisc.edu's avatar jvanboxtel@wisc.edu
Browse files

ROENROLL-1794 websockets reconnect

parent 5baca170
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,9 @@ export class AppComponent implements OnInit, OnDestroy {
this.subscription = this.wsclient.connectionState.subscribe(message => {
this.connectionState = message;
if (this.connectionState === 'Disconnected!') {
this.wsclient.ws.reconnect();
}
});
this.messageSubscription = this.wsclient.messages.subscribe(message => {
this.lastMessage = message;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment