@elqnt/chat 1.0.18 → 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.
package/dist/index.mjs CHANGED
@@ -600,8 +600,7 @@ var useWebSocketChatBase = ({
600
600
  loadChatRetryMapRef.current.clear();
601
601
  }, [stopHeartbeat]);
602
602
  const getRestApiUrl = useCallback((endpoint) => {
603
- const httpUrl = serverBaseUrl.replace(/^wss:/, "https:").replace(/^ws:/, "http:");
604
- return `${httpUrl}/${endpoint}`;
603
+ return `${serverBaseUrl}/${endpoint}`;
605
604
  }, [serverBaseUrl]);
606
605
  const sendRestMessage = useCallback(
607
606
  async (endpoint, body) => {