const initializeAbhaSocket = () => {
return new Promise(async (resolve, reject) => {
try {
// Using different URLs for staging and production modes
let url = isRelease ? "wss://dummy-production-url.com" : "wss://dummy-staging-url.com";
abhaSocket = null;
export var abhaSocket;
const initializeAbhaSocket = () => { return new Promise(async (resolve, reject) => { try { // Using different URLs for staging and production modes let url = isRelease ? "wss://dummy-production-url.com" : "wss://dummy-staging-url.com"; abhaSocket = null;
}); };
// Exporting the abhaSocket for use in other parts of the application export { initializeAbhaSocket };
// Note: This WebSocket connection works fine in release mode, but in debug mode, // it fails to connect and logs errors related to certificates.