@knowlearning/agents 0.3.10 → 0.3.11
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 +2 -0
- package/package.json +1 -1
package/agents/generic.js
CHANGED
|
@@ -320,12 +320,14 @@ export default function Agent({ host, token, WebSocket, protocol='ws', uuid, fet
|
|
|
320
320
|
|
|
321
321
|
function disconnect() {
|
|
322
322
|
log('DISCONNECTED AGENT!!!!!!!!!!!!!!!')
|
|
323
|
+
authed = false
|
|
323
324
|
disconnected = true
|
|
324
325
|
ws.close()
|
|
325
326
|
}
|
|
326
327
|
|
|
327
328
|
function reconnect() {
|
|
328
329
|
log('RECONNECTED AGENT!!!!!!!!!!!!!!!')
|
|
330
|
+
disconnected = false
|
|
329
331
|
initWS()
|
|
330
332
|
}
|
|
331
333
|
|