@knowlearning/agents 0.9.76 → 0.9.77
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/deno.js +3 -4
- package/package.json +1 -1
package/deno.js
CHANGED
|
@@ -12,12 +12,11 @@ function Connection() {
|
|
|
12
12
|
|
|
13
13
|
thisConnection.send = message => denoProcess.postMessage(message)
|
|
14
14
|
|
|
15
|
-
(
|
|
16
|
-
|
|
17
|
-
await new Promise(r => setTimeout(r, 1))
|
|
15
|
+
const delay = new Promise(r => setTimeout(r))
|
|
16
|
+
dalay.then(() => {
|
|
18
17
|
console.log('Deno connection onopen', thisConnection.onopen)
|
|
19
18
|
thisConnection.onopen && thisConnection.onopen()
|
|
20
|
-
})
|
|
19
|
+
})
|
|
21
20
|
|
|
22
21
|
// TODO: consider what onclose and onerror mean in this case
|
|
23
22
|
return thisConnection
|