* The backend actively pushes changesets submitted by others * Or actively compensate for missing versions of changeset
(data: IRemoteChangeset)
| 309 | * Or actively compensate for missing versions of changeset |
| 310 | */ |
| 311 | async handleNewChanges(data: IRemoteChangeset) { |
| 312 | console.log('Received remote Changeset: ', { data }); |
| 313 | const loading = this.getNetworking().loading; |
| 314 | if (loading) { |
| 315 | Player.doTrigger(Events.app_error_logger, { |
| 316 | error: new Error('receive newChanges while datasheet loading, ignored'), |
| 317 | }); |
| 318 | return; |
| 319 | } |
| 320 | |
| 321 | await this.checkMissChanges(data.revision); |
| 322 | this.applyNewChanges(data); |
| 323 | } |
| 324 | |
| 325 | private applyNewChanges(cs: IRemoteChangeset) { |
| 326 | // Receive newChanges from itself. This happens because the client disconnects and reconnects, |
nothing calls this directly
no test coverage detected