@quenty/timesyncservice 7.10.1 → 7.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [7.11.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/timesyncservice@7.10.1...@quenty/timesyncservice@7.11.0) (2023-07-23)
7
+
8
+
9
+ ### Features
10
+
11
+ * Add ObserveSyncedClock() to TimeSyncService ([47e2e86](https://github.com/Quenty/NevermoreEngine/commit/47e2e86493aa40facb142a3298fb834a8a77a7e7))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [7.10.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/timesyncservice@7.10.0...@quenty/timesyncservice@7.10.1) (2023-07-18)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/timesyncservice
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/timesyncservice",
3
- "version": "7.10.1",
3
+ "version": "7.11.0",
4
4
  "description": "Quenty's TimeSyncService keeps time synchronized between all clients and the server",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -31,11 +31,12 @@
31
31
  "@quenty/maid": "^2.5.0",
32
32
  "@quenty/promise": "^6.6.0",
33
33
  "@quenty/remoting": "^6.8.1",
34
+ "@quenty/rx": "^7.13.0",
34
35
  "@quenty/signal": "^2.4.0",
35
36
  "@quenty/table": "^3.2.0"
36
37
  },
37
38
  "publishConfig": {
38
39
  "access": "public"
39
40
  },
40
- "gitHead": "f9a3b5a8cd5311fed603b8b622879619c9af21e7"
41
+ "gitHead": "c1fbe93a0a20b5c0c4b9ffbbac771926b07ac251"
41
42
  }
@@ -20,6 +20,7 @@ local SlaveClock = require("SlaveClock")
20
20
  local TimeSyncConstants = require("TimeSyncConstants")
21
21
  local TimeSyncUtils = require("TimeSyncUtils")
22
22
  local Maid = require("Maid")
23
+ local Rx = require("Rx")
23
24
 
24
25
  local TimeSyncService = {}
25
26
  TimeSyncService.ServiceName = "TimeSyncService"
@@ -109,6 +110,10 @@ function TimeSyncService:PromiseSyncedClock()
109
110
  return Promise.resolved(self._clockPromise)
110
111
  end
111
112
 
113
+ function TimeSyncService:ObserveSyncedClock()
114
+ return Rx.fromPromise(self:PromiseSyncedClock())
115
+ end
116
+
112
117
  function TimeSyncService:_buildMockClock()
113
118
  local mock = {}
114
119