@geastack/host 0.1.23 → 0.1.24
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/README.md +5 -5
- package/host/device.cpp +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,11 +20,11 @@ headers it cannot satisfy with the portable sources.
|
|
|
20
20
|
|
|
21
21
|
There is no JavaScript entry point; the package exists to be compiled.
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
the ESP-IDF WebSocket client and its owned
|
|
26
|
-
works on the actual HTTP upgrade request.
|
|
27
|
-
|
|
23
|
+
On ESP32 the native WebSocket client applies the connection headers passed to
|
|
24
|
+
the `@geastack/core` WebSocket constructor (since host 0.1.16 and core 0.1.41).
|
|
25
|
+
Headers are applied to both the ESP-IDF WebSocket client and its owned
|
|
26
|
+
transport, so bearer authentication works on the actual HTTP upgrade request.
|
|
27
|
+
Connections opened with only a URL and subprotocol keep their defaults.
|
|
28
28
|
|
|
29
29
|
## License
|
|
30
30
|
|
package/host/device.cpp
CHANGED
|
@@ -24,7 +24,8 @@ GEA_WEAK_DEVICE bool setEpochMs(double timestamp) {
|
|
|
24
24
|
if (!std::isfinite(timestamp) || timestamp < 0) {
|
|
25
25
|
return false;
|
|
26
26
|
}
|
|
27
|
-
#if defined(_WIN32)
|
|
27
|
+
#if defined(_WIN32) || defined(__EMSCRIPTEN__)
|
|
28
|
+
// Neither host lets a program set the wall clock (Emscripten has no settimeofday).
|
|
28
29
|
return false;
|
|
29
30
|
#else
|
|
30
31
|
const auto seconds = static_cast<time_t>(timestamp / 1000);
|