connectbase-client 3.48.1 → 3.48.2

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/dist/cli.js +12 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -119,6 +119,12 @@ function handleTunnelError(msg, appId, localPort) {
119
119
  exitCode: 1
120
120
  };
121
121
  }
122
+ if (msg.code === "server_shutdown" || msg.error === "server shutting down") {
123
+ return {
124
+ action: "reconnect",
125
+ message: "\uC11C\uBC84\uAC00 \uC7AC\uC2DC\uC791 \uC911\uC785\uB2C8\uB2E4 \u2014 \uC7AC\uC5F0\uACB0\uD569\uB2C8\uB2E4"
126
+ };
127
+ }
122
128
  return {
123
129
  action: "warn",
124
130
  message: `\uD130\uB110 \uC5D0\uB7EC: ${msg.error || msg.message || "\uC54C \uC218 \uC5C6\uB294 \uC5D0\uB7EC"}`
@@ -2867,10 +2873,15 @@ ${colors.dim}Ctrl+C\uB85C \uC885\uB8CC${colors.reset}
2867
2873
  }
2868
2874
  case "tunnel_error": {
2869
2875
  const result = handleTunnelError(msg, appId, localPort);
2870
- error(result.message);
2871
2876
  if (result.action === "exit") {
2877
+ error(result.message);
2872
2878
  shouldReconnect = false;
2873
2879
  setTimeout(() => process.exit(result.exitCode ?? 1), 500);
2880
+ } else if (result.action === "reconnect") {
2881
+ info(result.message);
2882
+ sock.destroy();
2883
+ } else {
2884
+ error(result.message);
2874
2885
  }
2875
2886
  break;
2876
2887
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "connectbase-client",
3
- "version": "3.48.1",
3
+ "version": "3.48.2",
4
4
  "description": "Connect Base JavaScript/TypeScript SDK for browser and Node.js",
5
5
  "repository": {
6
6
  "type": "git",