@reititin/client 0.0.4 → 0.0.5

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.
Files changed (2) hide show
  1. package/index.js +7 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -33,7 +33,13 @@ export const ReititinClient = ({ agentId, onMessage }) => {
33
33
  });
34
34
 
35
35
  req.on('error', err => {
36
- console.error('Connection error:', err);
36
+ console.error('Connection closed. Reconnecting.');
37
+ client.close();
38
+ scheduleReconnect();
39
+ });
40
+
41
+ req.on('timeout', err => {
42
+ console.error('Connection timedout. Reconnecting.');
37
43
  client.close();
38
44
  scheduleReconnect();
39
45
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reititin/client",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Reititin client allows you to connect your LLM system to Reititin platform.",
5
5
  "keywords": [
6
6
  "AI",