@dittolive/ditto 4.5.1-experimental.aarch64-linux.1.aarch64 → 4.5.2-rc.2

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.
Files changed (152) hide show
  1. package/DittoReactNative.podspec +25 -0
  2. package/README.md +2 -2
  3. package/node/ditto.cjs.js +1 -1
  4. package/node/ditto.cjs.js.map +1 -0
  5. package/node/ditto.cjs.pretty.js +9655 -0
  6. package/node/ditto.cjs.pretty.js.map +1 -0
  7. package/node/ditto.darwin-arm64.node +0 -0
  8. package/node/ditto.darwin-x64.node +0 -0
  9. package/node/{ditto.linux-arm64.node → ditto.linux-x64.node} +0 -0
  10. package/node/transports.darwin-arm64.node +0 -0
  11. package/node/transports.darwin-x64.node +0 -0
  12. package/package.json +2 -1
  13. package/react-native/android/CMakeLists.txt +37 -0
  14. package/react-native/android/build.gradle +186 -0
  15. package/react-native/android/cpp-adapter.cpp +254 -0
  16. package/react-native/android/gradle.properties +5 -0
  17. package/react-native/android/src/main/AndroidManifest.xml +4 -0
  18. package/react-native/android/src/main/java/com/dittolive/rnsdk/DittoRNSDKModule.java +85 -0
  19. package/react-native/android/src/main/java/com/dittolive/rnsdk/DittoRNSDKPackage.java +28 -0
  20. package/react-native/cpp/include/Arc.hpp +141 -0
  21. package/react-native/cpp/include/Attachment.h +16 -0
  22. package/react-native/cpp/include/Authentication.h +23 -0
  23. package/react-native/cpp/include/Collection.h +13 -0
  24. package/react-native/cpp/include/DQL.h +21 -0
  25. package/react-native/cpp/include/Document.h +17 -0
  26. package/react-native/cpp/include/Identity.h +17 -0
  27. package/react-native/cpp/include/Lifecycle.h +17 -0
  28. package/react-native/cpp/include/LiveQuery.h +17 -0
  29. package/react-native/cpp/include/Logger.h +22 -0
  30. package/react-native/cpp/include/Misc.h +27 -0
  31. package/react-native/cpp/include/Presence.h +14 -0
  32. package/react-native/cpp/include/SmallPeerInfo.h +19 -0
  33. package/react-native/cpp/include/Transports.h +25 -0
  34. package/react-native/cpp/include/TypedArray.hpp +167 -0
  35. package/react-native/cpp/include/Utils.h +61 -0
  36. package/react-native/cpp/include/main.h +10 -0
  37. package/react-native/cpp/src/Attachment.cpp +86 -0
  38. package/react-native/cpp/src/Authentication.cpp +227 -0
  39. package/react-native/cpp/src/Collection.cpp +54 -0
  40. package/react-native/cpp/src/DQL.cpp +256 -0
  41. package/react-native/cpp/src/Document.cpp +146 -0
  42. package/react-native/cpp/src/Identity.cpp +123 -0
  43. package/react-native/cpp/src/Lifecycle.cpp +110 -0
  44. package/react-native/cpp/src/LiveQuery.cpp +63 -0
  45. package/react-native/cpp/src/Logger.cpp +200 -0
  46. package/react-native/cpp/src/Misc.cpp +283 -0
  47. package/react-native/cpp/src/Presence.cpp +79 -0
  48. package/react-native/cpp/src/SmallPeerInfo.cpp +142 -0
  49. package/react-native/cpp/src/Transports.cpp +270 -0
  50. package/react-native/cpp/src/TypedArray.cpp +303 -0
  51. package/react-native/cpp/src/Utils.cpp +138 -0
  52. package/react-native/cpp/src/main.cpp +152 -0
  53. package/react-native/dittoffi/dittoffi.h +4700 -0
  54. package/react-native/dittoffi/ifaddrs.cpp +385 -0
  55. package/react-native/dittoffi/ifaddrs.h +206 -0
  56. package/react-native/ios/DittoRNSDK.h +7 -0
  57. package/react-native/ios/DittoRNSDK.mm +107 -0
  58. package/react-native/ios/YeetJSIUtils.h +60 -0
  59. package/react-native/ios/YeetJSIUtils.mm +196 -0
  60. package/react-native/lib/commonjs/ditto.rn.js +92 -0
  61. package/react-native/lib/commonjs/ditto.rn.js.map +1 -0
  62. package/react-native/lib/commonjs/index.js +61 -0
  63. package/react-native/lib/commonjs/index.js.map +1 -0
  64. package/react-native/lib/module/ditto.rn.js +88 -0
  65. package/react-native/lib/module/ditto.rn.js.map +1 -0
  66. package/react-native/lib/module/index.js +27 -0
  67. package/react-native/lib/module/index.js.map +1 -0
  68. package/react-native/lib/typescript/ditto.rn.d.ts +15 -0
  69. package/react-native/lib/typescript/ditto.rn.d.ts.map +1 -0
  70. package/react-native/lib/typescript/index.d.ts +1 -0
  71. package/react-native/lib/typescript/index.d.ts.map +1 -0
  72. package/react-native/src/ditto.rn.ts +91 -0
  73. package/react-native/src/environment/environment.fallback.ts +4 -0
  74. package/react-native/src/index.ts +26 -0
  75. package/react-native/src/sources/@cbor-redux.ts +2 -0
  76. package/react-native/src/sources/@ditto.core.ts +1 -0
  77. package/react-native/src/sources/@environment.ts +1 -0
  78. package/react-native/src/sources/attachment-fetch-event.ts +54 -0
  79. package/react-native/src/sources/attachment-fetcher-manager.ts +144 -0
  80. package/react-native/src/sources/attachment-fetcher.ts +134 -0
  81. package/react-native/src/sources/attachment-token.ts +48 -0
  82. package/react-native/src/sources/attachment.ts +74 -0
  83. package/react-native/src/sources/augment.ts +101 -0
  84. package/react-native/src/sources/authenticator.ts +314 -0
  85. package/react-native/src/sources/base-pending-cursor-operation.ts +239 -0
  86. package/react-native/src/sources/base-pending-id-specific-operation.ts +109 -0
  87. package/react-native/src/sources/bridge.ts +553 -0
  88. package/react-native/src/sources/build-time-constants.ts +8 -0
  89. package/react-native/src/sources/cbor.ts +35 -0
  90. package/react-native/src/sources/collection-interface.ts +67 -0
  91. package/react-native/src/sources/collection.ts +212 -0
  92. package/react-native/src/sources/collections-event.ts +99 -0
  93. package/react-native/src/sources/counter.ts +82 -0
  94. package/react-native/src/sources/ditto.ts +979 -0
  95. package/react-native/src/sources/document-id.ts +159 -0
  96. package/react-native/src/sources/document-path.ts +306 -0
  97. package/react-native/src/sources/document.ts +193 -0
  98. package/react-native/src/sources/epilogue.ts +30 -0
  99. package/react-native/src/sources/error-codes.ts +52 -0
  100. package/react-native/src/sources/error.ts +208 -0
  101. package/react-native/src/sources/essentials.ts +53 -0
  102. package/react-native/src/sources/ffi-error.ts +122 -0
  103. package/react-native/src/sources/ffi.ts +2012 -0
  104. package/react-native/src/sources/identity.ts +163 -0
  105. package/react-native/src/sources/init.ts +71 -0
  106. package/react-native/src/sources/internal.ts +109 -0
  107. package/react-native/src/sources/keep-alive.ts +73 -0
  108. package/react-native/src/sources/key-path.ts +198 -0
  109. package/react-native/src/sources/live-query-event.ts +208 -0
  110. package/react-native/src/sources/live-query-manager.ts +102 -0
  111. package/react-native/src/sources/live-query.ts +166 -0
  112. package/react-native/src/sources/logger.ts +196 -0
  113. package/react-native/src/sources/main.ts +60 -0
  114. package/react-native/src/sources/observer-manager.ts +178 -0
  115. package/react-native/src/sources/observer.ts +79 -0
  116. package/react-native/src/sources/pending-collections-operation.ts +232 -0
  117. package/react-native/src/sources/pending-cursor-operation.ts +218 -0
  118. package/react-native/src/sources/pending-id-specific-operation.ts +218 -0
  119. package/react-native/src/sources/presence-manager.ts +161 -0
  120. package/react-native/src/sources/presence.ts +233 -0
  121. package/react-native/src/sources/query-result-item.ts +116 -0
  122. package/react-native/src/sources/query-result.ts +55 -0
  123. package/react-native/src/sources/register.ts +95 -0
  124. package/react-native/src/sources/small-peer-info.ts +177 -0
  125. package/react-native/src/sources/static-tcp-client.ts +6 -0
  126. package/react-native/src/sources/store-observer.ts +177 -0
  127. package/react-native/src/sources/store.ts +385 -0
  128. package/react-native/src/sources/subscription-manager.ts +99 -0
  129. package/react-native/src/sources/subscription.ts +89 -0
  130. package/react-native/src/sources/sync-subscription.ts +90 -0
  131. package/react-native/src/sources/sync.ts +559 -0
  132. package/react-native/src/sources/test-helpers.ts +24 -0
  133. package/react-native/src/sources/transport-conditions-manager.ts +104 -0
  134. package/react-native/src/sources/transport-config.ts +430 -0
  135. package/react-native/src/sources/update-result.ts +66 -0
  136. package/react-native/src/sources/update-results-map.ts +57 -0
  137. package/react-native/src/sources/websocket-client.ts +7 -0
  138. package/react-native/src/sources/write-transaction-collection.ts +122 -0
  139. package/react-native/src/sources/write-transaction-pending-cursor-operation.ts +101 -0
  140. package/react-native/src/sources/write-transaction-pending-id-specific-operation.ts +74 -0
  141. package/react-native/src/sources/write-transaction.ts +121 -0
  142. package/react-native.config.js +9 -0
  143. package/types/ditto.d.ts.map +1 -0
  144. package/web/ditto.es6.js +1 -1
  145. package/web/ditto.es6.js.map +1 -0
  146. package/web/ditto.es6.pretty.js +12600 -0
  147. package/web/ditto.es6.pretty.js.map +1 -0
  148. package/web/ditto.umd.js +1 -1
  149. package/web/ditto.umd.js.map +1 -0
  150. package/web/ditto.umd.pretty.js +12669 -0
  151. package/web/ditto.umd.pretty.js.map +1 -0
  152. package/web/ditto.wasm +0 -0
@@ -0,0 +1,138 @@
1
+ #include "Utils.h"
2
+
3
+ #include <functional>
4
+ #include <mutex>
5
+ #include <thread>
6
+ // #include <condition_variable>
7
+
8
+ namespace sharedjsi {
9
+
10
+ std::string pointerToHexString(void const *ptr) {
11
+ char buffer[20]; // Assuming a 64-bit pointer, 16 characters for address + 2 for "0x" + 1 for null-terminator.
12
+ snprintf(buffer, sizeof(buffer), "%p", ptr);
13
+ return std::string(buffer);
14
+ }
15
+
16
+ // To be used with `Option<slice_ref_uint8_t> (check Rust Core API)
17
+ slice_ref_uint8_t borrowVecAsOptRefSlice(std::vector<uint8_t> const& v) {
18
+ slice_ref_uint8_t it {};
19
+ it.ptr = v.empty() ? nullptr : v.data();
20
+ it.len = v.size();
21
+ return it;
22
+ }
23
+
24
+ // To be used with non-optional `slice_ref_uint8_t` (check Rust Core API)
25
+ slice_ref_uint8_t borrowVecAsRefSlice(std::vector<uint8_t> const& v) {
26
+ slice_ref_uint8_t it {};
27
+ it.ptr = v.empty() ? (uint8_t *) 0xbad000 : v.data();
28
+ it.len = v.size();
29
+ return it;
30
+ }
31
+
32
+ Function sliceBoxedToUInt8Array(Runtime &runtime) {
33
+ return Function::createFromHostFunction(runtime,
34
+ PropNameID::forAscii(runtime,
35
+ STRINGIFIED_FUNC_NAME()),
36
+ 0,
37
+ [](Runtime &runtime,
38
+ const Value &thisValue,
39
+ const Value *arguments,
40
+ size_t count) -> Value
41
+ {
42
+ auto fatPtrJs = arguments[0].asObject(runtime);
43
+ auto ptr = jsPointerObjectToCPointer<uint8_t>(runtime, fatPtrJs.getProperty(runtime, "ptr"));
44
+ auto len = static_cast<size_t>(fatPtrJs.getProperty(runtime, "len").asNumber());
45
+ slice_boxed_uint8 slice = { .ptr = ptr, .len = len };
46
+ if (!slice.ptr) {
47
+ return Value::null();
48
+ }
49
+
50
+ auto typedArray = TypedArray<TypedArrayKind::Uint8Array>(runtime, slice.len);
51
+ auto arrayBuffer = typedArray.getBuffer(runtime);
52
+ std::memcpy(arrayBuffer.data(runtime), slice.ptr, slice.len);
53
+
54
+ ::ditto_c_bytes_free(slice);
55
+
56
+ return typedArray;
57
+ });
58
+ }
59
+
60
+ std::vector<uint8_t> jsTypedArrayToCVector(Runtime &runtime, const Value &arg) {
61
+ if (arg.isUndefined() || arg.isNull()) {
62
+ return {};
63
+ }
64
+ TypedArrayBase typedArrayBase(runtime, arg.asObject(runtime));
65
+ return typedArrayBase.toVector(runtime);
66
+ }
67
+
68
+ std::string jsTypedArrayToCString(Runtime &runtime, const Value &arg) {
69
+ std::vector<uint8_t> vec = jsTypedArrayToCVector(runtime, arg);
70
+ return std::string(vec.begin(), vec.end());
71
+ }
72
+
73
+ Value cSlicedBoxToJSSlicedBox(Runtime &runtime, slice_boxed_uint8 box_c_bytes) {
74
+ Object obj(runtime);
75
+ obj.setProperty(runtime, "ptr", cPointerToJSPointerObject<uint8_t>(runtime, box_c_bytes.ptr));
76
+ obj.setProperty(runtime, "len", static_cast<double>(box_c_bytes.len));
77
+ return obj;
78
+ }
79
+
80
+ Function withOutBoxCBytes(Runtime &runtime) {
81
+ return Function::createFromHostFunction(runtime,
82
+ PropNameID::forAscii(runtime,
83
+ STRINGIFIED_FUNC_NAME()),
84
+ 0,
85
+ [](Runtime &runtime,
86
+ const Value &thisValue,
87
+ const Value *arguments,
88
+ size_t count) -> Value
89
+ {
90
+ auto callback = arguments[0].asObject(runtime).asFunction(runtime);
91
+ slice_boxed_uint8 box_c_bytes = { 0 };
92
+ auto out_box_cbytes = &box_c_bytes;
93
+ auto out_box_cbytes_js = cPointerToJSPointerObject<slice_boxed_uint8>(runtime, out_box_cbytes);
94
+
95
+ callback.call(runtime, out_box_cbytes_js);
96
+
97
+ return cSlicedBoxToJSSlicedBox(runtime, box_c_bytes);
98
+ });
99
+ }
100
+
101
+
102
+
103
+ using Task = std::function<void(Runtime *)>;
104
+
105
+ struct {
106
+ std::mutex mutex;
107
+ std::vector<Task> tasks;
108
+ // std::condition_variable condition;
109
+ } TASKS;
110
+
111
+ void ditto_enqueue_call(Task &&task) {
112
+ std::unique_lock<std::mutex> lock{TASKS.mutex};
113
+ TASKS.tasks.emplace_back(task);
114
+ // TASKS.condition.notify_one();
115
+ }
116
+
117
+ Task try_recv_task() {
118
+ std::unique_lock<std::mutex> lock(TASKS.mutex);
119
+ // TASKS.condition.wait(lock, [] { return !TASKS.tasks.empty(); });
120
+ if (TASKS.tasks.empty()) {
121
+ return nullptr;
122
+ }
123
+ Task task{std::move(TASKS.tasks.back())};
124
+ TASKS.tasks.pop_back();
125
+ return task;
126
+ }
127
+
128
+ void ditto_tick(Runtime *jsi) {
129
+ while (1) {
130
+ Task task = try_recv_task();
131
+ if (task == nullptr) {
132
+ return;
133
+ } else {
134
+ task(jsi);
135
+ }
136
+ }
137
+ }
138
+ }
@@ -0,0 +1,152 @@
1
+ #include <jsi/jsi.h>
2
+ #include <dittoffi.h>
3
+
4
+ #include "main.h"
5
+ #include "Utils.h"
6
+ #include "DQL.h"
7
+ #include "Document.h"
8
+ #include "Authentication.h"
9
+ #include "Lifecycle.h"
10
+ #include "Misc.h"
11
+ #include "Identity.h"
12
+ #include "Presence.h"
13
+ #include "Attachment.h"
14
+ #include "LiveQuery.h"
15
+ #include "Collection.h"
16
+ #include "Logger.h"
17
+ #include "SmallPeerInfo.h"
18
+ #include "Transports.h"
19
+
20
+ // Note: `runtime` variable must exist in scope.
21
+ #define REGISTER_JS_FUNCTION(fname) runtime.global().setProperty(runtime, STRINGIFY(fname), fname(runtime));
22
+
23
+ using namespace facebook::jsi;
24
+ using namespace std;
25
+
26
+ namespace sharedjsi
27
+ {
28
+
29
+ void install(Runtime &runtime)
30
+ {
31
+ // Identity
32
+ REGISTER_JS_FUNCTION(ditto_identity_config_make_online_playground);
33
+ REGISTER_JS_FUNCTION(ditto_identity_config_make_offline_playground);
34
+ REGISTER_JS_FUNCTION(ditto_identity_config_make_manual_v0);
35
+ REGISTER_JS_FUNCTION(ditto_identity_config_make_shared_key);
36
+ REGISTER_JS_FUNCTION(ditto_identity_config_make_online_with_authentication);
37
+
38
+ // Lifecycle
39
+ REGISTER_JS_FUNCTION(ditto_init_sdk_version);
40
+ REGISTER_JS_FUNCTION(ditto_uninitialized_ditto_make);
41
+ REGISTER_JS_FUNCTION(ditto_make);
42
+ REGISTER_JS_FUNCTION(ditto_shutdown);
43
+ REGISTER_JS_FUNCTION(ditto_free);
44
+
45
+ // Authentication
46
+ REGISTER_JS_FUNCTION(ditto_auth_client_get_app_id);
47
+ REGISTER_JS_FUNCTION(ditto_auth_client_is_x509_valid);
48
+ REGISTER_JS_FUNCTION(ditto_auth_client_is_web_valid);
49
+ REGISTER_JS_FUNCTION(ditto_auth_client_get_site_id);
50
+ REGISTER_JS_FUNCTION(ditto_auth_client_set_validity_listener);
51
+ REGISTER_JS_FUNCTION(ditto_auth_client_make_login_provider);
52
+ REGISTER_JS_FUNCTION(ditto_auth_set_login_provider);
53
+ REGISTER_JS_FUNCTION(ditto_auth_client_login_with_token);
54
+ REGISTER_JS_FUNCTION(ditto_auth_client_login_with_credentials);
55
+ REGISTER_JS_FUNCTION(ditto_auth_client_logout);
56
+ REGISTER_JS_FUNCTION(ditto_auth_client_user_id);
57
+
58
+ // DQL
59
+ REGISTER_JS_FUNCTION(dittoffi_try_experimental_register_change_observer_str_detached);
60
+ REGISTER_JS_FUNCTION(dittoffi_try_experimental_add_dql_subscription);
61
+ REGISTER_JS_FUNCTION(dittoffi_try_experimental_remove_dql_subscription);
62
+ REGISTER_JS_FUNCTION(dittoffi_try_experimental_exec_statement_str);
63
+ REGISTER_JS_FUNCTION(ditto_dql_response_result_count);
64
+ REGISTER_JS_FUNCTION(ditto_dql_response_result_at);
65
+ REGISTER_JS_FUNCTION(ditto_dql_response_affected_document_id_count);
66
+ REGISTER_JS_FUNCTION(ditto_dql_response_affected_document_id_at);
67
+ REGISTER_JS_FUNCTION(ditto_result_cbor);
68
+ REGISTER_JS_FUNCTION(ditto_result_json);
69
+
70
+ // Documents
71
+ REGISTER_JS_FUNCTION(ditto_document_id_query_compatible);
72
+ REGISTER_JS_FUNCTION(ditto_document_id);
73
+ REGISTER_JS_FUNCTION(ditto_document_free);
74
+ REGISTER_JS_FUNCTION(ditto_document_get_cbor_with_path_type);
75
+ REGISTER_JS_FUNCTION(ditto_validate_document_id);
76
+
77
+ // Presence
78
+ REGISTER_JS_FUNCTION(ditto_presence_v3);
79
+ REGISTER_JS_FUNCTION(ditto_register_presence_v3_callback);
80
+ REGISTER_JS_FUNCTION(ditto_clear_presence_v3_callback);
81
+
82
+ // Attachment
83
+ REGISTER_JS_FUNCTION(ditto_cancel_resolve_attachment);
84
+ REGISTER_JS_FUNCTION(ditto_free_attachment_handle);
85
+ REGISTER_JS_FUNCTION(ditto_get_complete_attachment_path);
86
+ REGISTER_JS_FUNCTION(ditto_new_attachment_from_bytes);
87
+
88
+ // LiveQuery
89
+ REGISTER_JS_FUNCTION(ditto_live_query_start);
90
+ REGISTER_JS_FUNCTION(ditto_live_query_stop);
91
+ REGISTER_JS_FUNCTION(ditto_live_query_signal_available_next);
92
+
93
+ // Collection
94
+ REGISTER_JS_FUNCTION(ditto_collection_insert_value);
95
+
96
+ // Logger
97
+ REGISTER_JS_FUNCTION(ditto_log);
98
+ REGISTER_JS_FUNCTION(ditto_logger_set_log_file);
99
+ REGISTER_JS_FUNCTION(ditto_logger_minimum_log_level_get);
100
+ REGISTER_JS_FUNCTION(ditto_logger_minimum_log_level);
101
+ REGISTER_JS_FUNCTION(ditto_logger_emoji_headings_enabled_get);
102
+ REGISTER_JS_FUNCTION(ditto_logger_emoji_headings_enabled);
103
+ REGISTER_JS_FUNCTION(ditto_logger_enabled_get);
104
+ REGISTER_JS_FUNCTION(ditto_logger_enabled);
105
+
106
+ // Small Peer Info
107
+ REGISTER_JS_FUNCTION(ditto_small_peer_info_set_transport_config_data);
108
+ REGISTER_JS_FUNCTION(ditto_small_peer_info_get_is_enabled);
109
+ REGISTER_JS_FUNCTION(ditto_small_peer_info_set_enabled);
110
+ REGISTER_JS_FUNCTION(ditto_small_peer_info_get_sync_scope);
111
+ REGISTER_JS_FUNCTION(ditto_small_peer_info_set_sync_scope);
112
+ REGISTER_JS_FUNCTION(ditto_small_peer_info_get_metadata);
113
+ REGISTER_JS_FUNCTION(ditto_small_peer_info_set_metadata);
114
+
115
+ // FFI functions
116
+ REGISTER_JS_FUNCTION(withOutBoxCBytes);
117
+ REGISTER_JS_FUNCTION(sliceBoxedToUInt8Array);
118
+
119
+ // Transports
120
+ REGISTER_JS_FUNCTION(ditto_sdk_transports_init);
121
+ REGISTER_JS_FUNCTION(ditto_sdk_transports_error_new);
122
+ REGISTER_JS_FUNCTION(ditto_sdk_transports_error_value);
123
+ REGISTER_JS_FUNCTION(ditto_sdk_transports_error_free);
124
+ REGISTER_JS_FUNCTION(ditto_sdk_transports_ble_is_available);
125
+ REGISTER_JS_FUNCTION(ditto_sdk_transports_ble_create);
126
+ REGISTER_JS_FUNCTION(ditto_sdk_transports_ble_destroy);
127
+ REGISTER_JS_FUNCTION(ditto_sdk_transports_lan_is_available);
128
+ REGISTER_JS_FUNCTION(ditto_sdk_transports_lan_create);
129
+ REGISTER_JS_FUNCTION(ditto_sdk_transports_lan_destroy);
130
+ REGISTER_JS_FUNCTION(ditto_sdk_transports_awdl_is_available);
131
+ REGISTER_JS_FUNCTION(ditto_sdk_transports_awdl_create);
132
+ REGISTER_JS_FUNCTION(ditto_sdk_transports_awdl_destroy);
133
+ REGISTER_JS_FUNCTION(ditto_add_multicast_transport);
134
+ REGISTER_JS_FUNCTION(ditto_remove_multicast_transport);
135
+
136
+ // Misc
137
+ REGISTER_JS_FUNCTION(ditto_tick);
138
+ REGISTER_JS_FUNCTION(ditto_set_connect_retry_interval);
139
+ REGISTER_JS_FUNCTION(ditto_set_device_name);
140
+ REGISTER_JS_FUNCTION(ditto_get_sdk_version);
141
+ REGISTER_JS_FUNCTION(dittoffi_get_sdk_semver);
142
+ REGISTER_JS_FUNCTION(ditto_error_message);
143
+ REGISTER_JS_FUNCTION(dittoffi_error_code);
144
+ REGISTER_JS_FUNCTION(dittoffi_error_description);
145
+ REGISTER_JS_FUNCTION(dittoffi_error_free);
146
+ REGISTER_JS_FUNCTION(ditto_verify_license);
147
+ REGISTER_JS_FUNCTION(ditto_run_garbage_collection);
148
+ REGISTER_JS_FUNCTION(ditto_set_static_websocket_clients);
149
+ REGISTER_JS_FUNCTION(ditto_set_sync_group);
150
+ REGISTER_JS_FUNCTION(refCStringToString);
151
+ }
152
+ }