@knowlearning/agents 0.4.5 → 0.4.6
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/agents/generic.js +7 -3
- package/package.json +1 -1
package/agents/generic.js
CHANGED
|
@@ -219,10 +219,14 @@ export default function Agent({ host, token, WebSocket, protocol='ws', uuid, fet
|
|
|
219
219
|
keyToSubscriptionId[k] = id
|
|
220
220
|
watchers[k] = []
|
|
221
221
|
states[k] = new Promise(async resolve => {
|
|
222
|
-
subscriptions[id] = { scope, ii: null, session }
|
|
223
222
|
|
|
224
|
-
|
|
225
|
-
|
|
223
|
+
subscriptions[id] = {
|
|
224
|
+
session,
|
|
225
|
+
domain: d,
|
|
226
|
+
user: u,
|
|
227
|
+
scope,
|
|
228
|
+
ii: null
|
|
229
|
+
}
|
|
226
230
|
|
|
227
231
|
const { ii, state } = await lastMessageResponse()
|
|
228
232
|
subscriptions[id].ii = ii
|