(nextPresence: R | null)
| 833 | private lastPushedPresenceState: R | null = null |
| 834 | |
| 835 | private pushPresence(nextPresence: R | null) { |
| 836 | // make sure we push any document changes first |
| 837 | this.store._flushHistory() |
| 838 | |
| 839 | if (!this.isConnectedToRoom) { |
| 840 | // if we're offline, don't do anything |
| 841 | return |
| 842 | } |
| 843 | |
| 844 | this.unsentChanges.nextPresence = nextPresence |
| 845 | this.sendUnsentChanges() |
| 846 | } |
| 847 | |
| 848 | /** Push a change to the server, or stash it locally if we're offline */ |
| 849 | private push(change: RecordsDiff<any>) { |
no test coverage detected