(session: SyncSession)
| 1075 | } |
| 1076 | |
| 1077 | private onErrorHandler(session: SyncSession) { |
| 1078 | return (evt: any) => { |
| 1079 | // WS errors are intentionally vague, so just log a message |
| 1080 | this.logger.error( |
| 1081 | 'An error occurred during the connection to the server. Retrying connection...' |
| 1082 | ); |
| 1083 | // on error, close the connection and attempt to reconnect |
| 1084 | this.closeConnection(); |
| 1085 | }; |
| 1086 | } |
| 1087 | |
| 1088 | private lastKnownConnectionStatus: ConnectionStatus = 'UNINITIALIZED'; |
| 1089 | private fireConnectionChangeHandlers(session: SyncSession | undefined) { |
no test coverage detected