angular-ngrx-socket-frontend icon indicating copy to clipboard operation
angular-ngrx-socket-frontend copied to clipboard

Events Stop when app goes offline and come back online.

Open LeoCreer opened this issue 6 years ago • 1 comments

Server restarts or app loses connection. The server tries to send event down to clients. All events subscribed to the listen Observable are lost however The client is still receiving events there are no updates to view because observable ended.

I believe it has something to do with that dynamic listen observable. Maybe you have more insight.

What do you recommend for a fix?

LeoCreer avatar Mar 22 '18 23:03 LeoCreer

Did you solve the issue, am trying to fiddle with websockets my self, but why not use WebSocketSubject from RxJS instead of a SocketIOClient, here is an article Auto WebSocket Reconnection with RxJS .

axmad22 avatar Apr 19 '18 04:04 axmad22