@knowlearning/agents 0.3.10 → 0.3.12

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 CHANGED
@@ -89,7 +89,7 @@ export default function Agent({ host, token, WebSocket, protocol='ws', uuid, fet
89
89
 
90
90
  ws.onmessage = async ({ data }) => {
91
91
  try {
92
- log('handling message')
92
+ log('handling message', disconnected, authed)
93
93
  const message = JSON.parse(data)
94
94
  log('message', message)
95
95
 
@@ -326,6 +326,7 @@ export default function Agent({ host, token, WebSocket, protocol='ws', uuid, fet
326
326
 
327
327
  function reconnect() {
328
328
  log('RECONNECTED AGENT!!!!!!!!!!!!!!!')
329
+ disconnected = false
329
330
  initWS()
330
331
  }
331
332
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowlearning/agents",
3
- "version": "0.3.10",
3
+ "version": "0.3.12",
4
4
  "description": "API for embedding applications in KnowLearning systems.",
5
5
  "main": "node.js",
6
6
  "browser": "browser.js",