connected-spaces-platform.web 4.10.1-prerelease1-
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/Debug/ConnectedSpacesPlatform_WASM.js +12490 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.worker.js +156 -0
- package/README.md +43 -0
- package/Release/ConnectedSpacesPlatform_WASM.js +16 -0
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Release/ConnectedSpacesPlatform_WASM.worker.js +1 -0
- package/connectedspacesplatform.d.ts +4882 -0
- package/connectedspacesplatform.js +19541 -0
- package/connectedspacesplatform.js.map +1 -0
- package/connectedspacesplatform.ts +45087 -0
- package/package.json +14 -0
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2015 The Emscripten Authors
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// Pthread Web Worker startup routine:
|
|
8
|
+
// This is the entry point file that is loaded first by each Web Worker
|
|
9
|
+
// that executes pthreads on the Emscripten application.
|
|
10
|
+
|
|
11
|
+
'use strict';
|
|
12
|
+
|
|
13
|
+
var Module = {};
|
|
14
|
+
|
|
15
|
+
// Thread-local guard variable for one-time init of the JS state
|
|
16
|
+
var initializedJS = false;
|
|
17
|
+
|
|
18
|
+
function assert(condition, text) {
|
|
19
|
+
if (!condition) abort('Assertion failed: ' + text);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function threadPrintErr() {
|
|
23
|
+
var text = Array.prototype.slice.call(arguments).join(' ');
|
|
24
|
+
console.error(text);
|
|
25
|
+
}
|
|
26
|
+
function threadAlert() {
|
|
27
|
+
var text = Array.prototype.slice.call(arguments).join(' ');
|
|
28
|
+
postMessage({cmd: 'alert', text: text, threadId: Module['_pthread_self']()});
|
|
29
|
+
}
|
|
30
|
+
// We don't need out() for now, but may need to add it if we want to use it
|
|
31
|
+
// here. Or, if this code all moves into the main JS, that problem will go
|
|
32
|
+
// away. (For now, adding it here increases code size for no benefit.)
|
|
33
|
+
var out = () => { throw 'out() is not defined in worker.js.'; }
|
|
34
|
+
var err = threadPrintErr;
|
|
35
|
+
self.alert = threadAlert;
|
|
36
|
+
var dbg = threadPrintErr;
|
|
37
|
+
|
|
38
|
+
Module['instantiateWasm'] = (info, receiveInstance) => {
|
|
39
|
+
// Instantiate from the module posted from the main thread.
|
|
40
|
+
// We can just use sync instantiation in the worker.
|
|
41
|
+
var module = Module['wasmModule'];
|
|
42
|
+
// We don't need the module anymore; new threads will be spawned from the main thread.
|
|
43
|
+
Module['wasmModule'] = null;
|
|
44
|
+
var instance = new WebAssembly.Instance(module, info);
|
|
45
|
+
// TODO: Due to Closure regression https://github.com/google/closure-compiler/issues/3193,
|
|
46
|
+
// the above line no longer optimizes out down to the following line.
|
|
47
|
+
// When the regression is fixed, we can remove this if/else.
|
|
48
|
+
return receiveInstance(instance);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Turn unhandled rejected promises into errors so that the main thread will be
|
|
52
|
+
// notified about them.
|
|
53
|
+
self.onunhandledrejection = (e) => {
|
|
54
|
+
throw e.reason ?? e;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
function handleMessage(e) {
|
|
58
|
+
try {
|
|
59
|
+
if (e.data.cmd === 'load') { // Preload command that is called once per worker to parse and load the Emscripten code.
|
|
60
|
+
|
|
61
|
+
// Until we initialize the runtime, queue up any further incoming messages.
|
|
62
|
+
let messageQueue = [];
|
|
63
|
+
self.onmessage = (e) => messageQueue.push(e);
|
|
64
|
+
|
|
65
|
+
// And add a callback for when the runtime is initialized.
|
|
66
|
+
self.startWorker = (instance) => {
|
|
67
|
+
Module = instance;
|
|
68
|
+
// Notify the main thread that this thread has loaded.
|
|
69
|
+
postMessage({ 'cmd': 'loaded' });
|
|
70
|
+
// Process any messages that were queued before the thread was ready.
|
|
71
|
+
for (let msg of messageQueue) {
|
|
72
|
+
handleMessage(msg);
|
|
73
|
+
}
|
|
74
|
+
// Restore the real message handler.
|
|
75
|
+
self.onmessage = handleMessage;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
// Module and memory were sent from main thread
|
|
79
|
+
Module['wasmModule'] = e.data.wasmModule;
|
|
80
|
+
|
|
81
|
+
// Use `const` here to ensure that the variable is scoped only to
|
|
82
|
+
// that iteration, allowing safe reference from a closure.
|
|
83
|
+
for (const handler of e.data.handlers) {
|
|
84
|
+
Module[handler] = function() {
|
|
85
|
+
postMessage({ cmd: 'callHandler', handler, args: [...arguments] });
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
Module['wasmMemory'] = e.data.wasmMemory;
|
|
90
|
+
|
|
91
|
+
Module['buffer'] = Module['wasmMemory'].buffer;
|
|
92
|
+
|
|
93
|
+
Module['workerID'] = e.data.workerID;
|
|
94
|
+
|
|
95
|
+
Module['ENVIRONMENT_IS_PTHREAD'] = true;
|
|
96
|
+
|
|
97
|
+
(e.data.urlOrBlob ? import(e.data.urlOrBlob) : import('./ConnectedSpacesPlatform_WASM.js'))
|
|
98
|
+
.then(exports => exports.default(Module));
|
|
99
|
+
} else if (e.data.cmd === 'run') {
|
|
100
|
+
// Pass the thread address to wasm to store it for fast access.
|
|
101
|
+
Module['__emscripten_thread_init'](e.data.pthread_ptr, /*isMainBrowserThread=*/0, /*isMainRuntimeThread=*/0, /*canBlock=*/1);
|
|
102
|
+
|
|
103
|
+
// Await mailbox notifications with `Atomics.waitAsync` so we can start
|
|
104
|
+
// using the fast `Atomics.notify` notification path.
|
|
105
|
+
Module['__emscripten_thread_mailbox_await'](e.data.pthread_ptr);
|
|
106
|
+
|
|
107
|
+
assert(e.data.pthread_ptr);
|
|
108
|
+
// Also call inside JS module to set up the stack frame for this pthread in JS module scope
|
|
109
|
+
Module['establishStackSpace']();
|
|
110
|
+
Module['PThread'].receiveObjectTransfer(e.data);
|
|
111
|
+
Module['PThread'].threadInitTLS();
|
|
112
|
+
|
|
113
|
+
if (!initializedJS) {
|
|
114
|
+
initializedJS = true;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
try {
|
|
118
|
+
Module['invokeEntryPoint'](e.data.start_routine, e.data.arg);
|
|
119
|
+
} catch(ex) {
|
|
120
|
+
if (ex != 'unwind') {
|
|
121
|
+
// The pthread "crashed". Do not call `_emscripten_thread_exit` (which
|
|
122
|
+
// would make this thread joinable). Instead, re-throw the exception
|
|
123
|
+
// and let the top level handler propagate it back to the main thread.
|
|
124
|
+
throw ex;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
} else if (e.data.cmd === 'cancel') { // Main thread is asking for a pthread_cancel() on this thread.
|
|
128
|
+
if (Module['_pthread_self']()) {
|
|
129
|
+
Module['__emscripten_thread_exit'](-1);
|
|
130
|
+
}
|
|
131
|
+
} else if (e.data.target === 'setimmediate') {
|
|
132
|
+
// no-op
|
|
133
|
+
} else if (e.data.cmd === 'checkMailbox') {
|
|
134
|
+
if (initializedJS) {
|
|
135
|
+
Module['checkMailbox']();
|
|
136
|
+
}
|
|
137
|
+
} else if (e.data.cmd) {
|
|
138
|
+
// The received message looks like something that should be handled by this message
|
|
139
|
+
// handler, (since there is a e.data.cmd field present), but is not one of the
|
|
140
|
+
// recognized commands:
|
|
141
|
+
err('worker.js received unknown command ' + e.data.cmd);
|
|
142
|
+
err(e.data);
|
|
143
|
+
}
|
|
144
|
+
} catch(ex) {
|
|
145
|
+
err('worker.js onmessage() captured an uncaught exception: ' + ex);
|
|
146
|
+
if (ex && ex.stack) err(ex.stack);
|
|
147
|
+
if (Module['__emscripten_thread_crashed']) {
|
|
148
|
+
Module['__emscripten_thread_crashed']();
|
|
149
|
+
}
|
|
150
|
+
throw ex;
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
self.onmessage = handleMessage;
|
|
155
|
+
|
|
156
|
+
|
package/README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<h1>Built from changelist ID 0ca5e3958454e18cc12a5f9c89b90b60ad059110</h1>
|
|
2
|
+
<h2>Summary Lists</h2>
|
|
3
|
+
<h3><p>🐛 🔨 Fixes</p></h3>
|
|
4
|
+
<ul><li>No Ticket - Fix premake project kind type - b06afe3</li><li>No Ticket - Fixed incorrect ordering in eassetchangetype enum values for assetdetailblobchanged event - cf76d33</li></ul><h3><p>🧩 Misc Changes</p></h3>
|
|
5
|
+
<ul><li>No Ticket - Merge pull request #123 from magnopus-opensource/of-1029-as-a-contributor-to-foundation-i-want-to-be-sure-that-all-platform-specific-web-socket-code-works-as-expected of-1029-as-a-contributor-to-foundation-i-want-to-be-sure-that-all-platform-specific-web-socket-code-works-as-expected - 022595c</li></ul>
|
|
6
|
+
<h2>Revision Change Details</h2>
|
|
7
|
+
|
|
8
|
+
<table><thead><tr><th>change_id</th><th>user</th><th>description</th></thead>
|
|
9
|
+
<tbody><tr><td>0866226</td><td>MAG-AW</td><td>merge pull request #176 from magnopus-opensource/staging <em> <br>4.10.1 </em> </td></tr>
|
|
10
|
+
<tr><td>e5f99a7</td><td>Sam Birley</td><td>merge pull request #175 from magnopus-opensource/develop <em> <br>Staging 4.10.1 </em> </td></tr>
|
|
11
|
+
<tr><td>b06afe3</td><td>Mag-JB</td><td>merge pull request #174 from magnopus-opensource/nt-0-change-wasm-test-kind <em> <br>[NT-0] fix: Fix premake project kind type </em> </td></tr>
|
|
12
|
+
<tr><td>1372f91</td><td>Mag-JB</td><td><strong><em>[nt-0] fix</em></strong>: fix premake project kind type <em> </em> </td></tr>
|
|
13
|
+
<tr><td>8356fdc</td><td>MAG-AW</td><td>merge pull request #173 from magnopus-opensource/staging <em> <br>4.10.0 </em> </td></tr>
|
|
14
|
+
<tr><td>59b7b29</td><td>MAG-AW</td><td>merge pull request #172 from magnopus-opensource/develop <em> <br>Staging 4.10.0 </em> </td></tr>
|
|
15
|
+
<tr><td>16a1f77</td><td>Michael K</td><td><strong><em>[nt-0] fix</em></strong>: exclude ios debug binaries <em> </em> </td></tr>
|
|
16
|
+
<tr><td>cf76d33</td><td>MAG-ThomasGreenhalgh</td><td>merge pull request #169 from magnopus-opensource/ob-2914_fix_eassetchangetype_mismatch <em> <br>[OB-2914] fix: Fixed incorrect ordering in EAssetChangeType enum values for AssetDetailBlobChanged event </em> </td></tr>
|
|
17
|
+
<tr><td>022595c</td><td>Mag-JB</td><td>merge pull request #123 from magnopus-opensource/of-1029-as-a-contributor-to-foundation-i-want-to-be-sure-that-all-platform-specific-web-socket-code-works-as-expected <em> <br>OF-1029-as-a-contributor-to-foundation-i-want-to-be-sure-that-all-platform-specific-web-socket-code-works-as-expected </em> </td></tr>
|
|
18
|
+
<tr><td>e272909</td><td>MAG-AW</td><td><strong><em>[of-1114] fix</em></strong>: add scope as an arg for tc (#167) <em> </em> </td></tr>
|
|
19
|
+
<tr><td>964d35e</td><td>MAG-ThomasGreenhalgh</td><td>merge branch 'develop' into ob-2914_fix_eassetchangetype_mismatch <em> </em> </td></tr>
|
|
20
|
+
<tr><td>6d9c96b</td><td>MAG-ThomasGreenhalgh</td><td><strong><em>[ob-2914] fix</em></strong>: fix order of eassetchangetype enum <em> </em> </td></tr>
|
|
21
|
+
<tr><td>207b49a</td><td>Mag-JB</td><td>merge branch 'develop' into of-1029-as-a-contributor-to-foundation-i-want-to-be-sure-that-all-platform-specific-web-socket-code-works-as-expected</td></tr>
|
|
22
|
+
<tr><td>c42511c</td><td>Michael K</td><td><strong><em>[nt-0] fix</em></strong>: add readme to unity package gen <em> </em> </td></tr>
|
|
23
|
+
<tr><td>acf9a3b</td><td>Mag-JB</td><td>merge branch 'develop' into of-1029-as-a-contributor-to-foundation-i-want-to-be-sure-that-all-platform-specific-web-socket-code-works-as-expected</td></tr>
|
|
24
|
+
<tr><td>660a419</td><td>Mag-JB</td><td><strong><em>[of-1029] fix</em></strong>: revert removing filter <em> </em> </td></tr>
|
|
25
|
+
<tr><td>31676b1</td><td>MAG-pw</td><td><strong><em>[of-1145] feat</em></strong>: expose some logging apis <em> <br>This exposes the get and set for logging level for the wrapper
|
|
26
|
+
<br>generator. </em> </td></tr>
|
|
27
|
+
<tr><td>b0e13eb</td><td>Mag-JB</td><td>merge branch 'develop' into of-1029-as-a-contributor-to-foundation-i-want-to-be-sure-that-all-platform-specific-web-socket-code-works-as-expected</td></tr>
|
|
28
|
+
<tr><td>532aac8</td><td>Mag-JB</td><td>merge branch 'develop' into of-1029-as-a-contributor-to-foundation-i-want-to-be-sure-that-all-platform-specific-web-socket-code-works-as-expected</td></tr>
|
|
29
|
+
<tr><td>4afec46</td><td>MAG-mv</td><td><strong><em>[of-1029] fix</em></strong>: tc builds <em> </em> </td></tr>
|
|
30
|
+
<tr><td>2738713</td><td>MAG-mv</td><td>merge branch 'develop' <em> </em> </td></tr>
|
|
31
|
+
<tr><td>04814ce</td><td>MAG-mv</td><td><strong><em>[of-1029] doc</em></strong>: add macro comment <em> </em> </td></tr>
|
|
32
|
+
<tr><td>6176f12</td><td>MAG-mv</td><td><strong><em>[of-1029] fix</em></strong>: remove test logs <em> </em> </td></tr>
|
|
33
|
+
<tr><td>d7f6c56</td><td>MAG-mv</td><td><strong><em>[of-1029] fix</em></strong>: run wasm tests through docker <em> </em> </td></tr>
|
|
34
|
+
<tr><td>ebfa952</td><td>MAG-mv</td><td>merge branch 'main' <em> </em> </td></tr>
|
|
35
|
+
<tr><td>c9a0048</td><td>MAG-mv</td><td><strong><em>[of-1029] fix</em></strong>: merge main <em> </em> </td></tr>
|
|
36
|
+
<tr><td>55f7e10</td><td>MAG-mv</td><td><strong><em>[of-1029] refac</em></strong>: fix account creds for wasm <em> </em> </td></tr>
|
|
37
|
+
<tr><td>251d211</td><td>MAG-mv</td><td><strong><em>[of-1029] fix</em></strong>: adding index files <em> </em> </td></tr>
|
|
38
|
+
<tr><td>b8139bd</td><td>MAG-mv</td><td><strong><em>[of-1029] fix</em></strong>: adding platform utils <em> </em> </td></tr>
|
|
39
|
+
<tr><td>cd5601e</td><td>MAG-mv</td><td><strong><em>[of-1029] fix</em></strong>: add custom xml writer <em> </em> </td></tr>
|
|
40
|
+
<tr><td>e9724c0</td><td>MAG-mv</td><td><strong><em>[of-1029] fix</em></strong>: update gtest to 4e9fe308 <em> </em> </td></tr>
|
|
41
|
+
<tr><td>80b0d94</td><td>MAG-mv</td><td><strong><em>[of-1029] fix</em></strong>: webclient tests <em> </em> </td></tr>
|
|
42
|
+
<tr><td>52b19a5</td><td>MAG-mv</td><td><strong><em>[of-1029] test</em></strong>: add websocket client tests <em> </em> </td></tr>
|
|
43
|
+
</tbody></table>
|