@elqnt/chat 1.0.17 → 1.0.19

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.
@@ -237,8 +237,7 @@ var useWebSocketChatBase = ({
237
237
  loadChatRetryMapRef.current.clear();
238
238
  }, [stopHeartbeat]);
239
239
  const getRestApiUrl = (0, import_react.useCallback)((endpoint) => {
240
- const httpUrl = serverBaseUrl.replace(/^wss:/, "https:").replace(/^ws:/, "http:");
241
- return `${httpUrl}/${endpoint}`;
240
+ return `${serverBaseUrl}/${endpoint}`;
242
241
  }, [serverBaseUrl]);
243
242
  const sendRestMessage = (0, import_react.useCallback)(
244
243
  async (endpoint, body) => {
@@ -874,6 +873,8 @@ var useWebSocketChatBase = ({
874
873
  case "skill_activate":
875
874
  case "skill_deactivate":
876
875
  case "sync_metadata":
876
+ case "sync_user_session":
877
+ case "csat_response":
877
878
  case "plan_approved":
878
879
  case "plan_rejected":
879
880
  await sendRestMessage("event", {