@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 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
- Version 0.1.16 adds native ESP32 WebSocket connection headers, paired with the
24
- public constructor options in `@geastack/core` 0.1.41. Headers are applied to both
25
- the ESP-IDF WebSocket client and its owned transport, so bearer authentication
26
- works on the actual HTTP upgrade request. Existing URL and subprotocol-only
27
- connections retain their defaults.
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geastack/host",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "description": "GeaStack host bindings and platform service sources.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {