@knowlearning/agents 0.9.74 → 0.9.76
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 +2 -0
- package/package.json +1 -1
package/deno.js
CHANGED
|
@@ -7,11 +7,13 @@ const SERVICE_ACCOUNT_TOKEN = Deno.env.get("SERVICE_ACCOUNT_TOKEN")
|
|
|
7
7
|
const denoProcess = self
|
|
8
8
|
|
|
9
9
|
function Connection() {
|
|
10
|
+
console.log('Deno starting connection...')
|
|
10
11
|
const thisConnection = this
|
|
11
12
|
|
|
12
13
|
thisConnection.send = message => denoProcess.postMessage(message)
|
|
13
14
|
|
|
14
15
|
(async function () {
|
|
16
|
+
console.log('executing anonymous function????')
|
|
15
17
|
await new Promise(r => setTimeout(r, 1))
|
|
16
18
|
console.log('Deno connection onopen', thisConnection.onopen)
|
|
17
19
|
thisConnection.onopen && thisConnection.onopen()
|