1e41f4b71Sopenharmony_ci# Network Subsystem Changelog 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci## cl.network.1 Error Code 2302998 Added to webSocket.connect 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ci**Access Level** 6e41f4b71Sopenharmony_ci 7e41f4b71Sopenharmony_ciPublic API 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ci**Reason for Change** 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ciThe purpose of this change is to standardize the range of domain names for atomic service requests and improve the atomic service release efficiency and platform operation security. When a user initiates an atomic service request, domain name access is subject to the domain name configured for the atomic service. If no domain name is configured, the **connect** API returns the error code 2302998. 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci**Change Impact** 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ciThis change is a non-compatible change. 16e41f4b71Sopenharmony_ci 17e41f4b71Sopenharmony_ciIf no domain name is configured for atomic services of API version 11 or earlier, the **connect** API is not affected. 18e41f4b71Sopenharmony_ci 19e41f4b71Sopenharmony_ciFrom API version 12, the **connect** API throws this error code for access to a domain name not configured for an atomic service. For details, see [API Reference](../../../application-dev/reference/apis-network-kit/js-apis-webSocket.md). 20e41f4b71Sopenharmony_ci 21e41f4b71Sopenharmony_ci**Start API Level** 22e41f4b71Sopenharmony_ci 23e41f4b71Sopenharmony_ci6 24e41f4b71Sopenharmony_ci 25e41f4b71Sopenharmony_ci**Change Since** 26e41f4b71Sopenharmony_ci 27e41f4b71Sopenharmony_ciOpenHarmony SDK 5.0.0.36 28e41f4b71Sopenharmony_ci 29e41f4b71Sopenharmony_ci**Key API/Component Changes** 30e41f4b71Sopenharmony_ci 31e41f4b71Sopenharmony_ci| Interface File | 32e41f4b71Sopenharmony_ci|--------------------------------------------------------------------------------------------------------------------| 33e41f4b71Sopenharmony_ci| [ohos.net.webSocket.d.ts](https://gitee.com/openharmony/interface_sdk-js/blob/master/api/@ohos.net.webSocket.d.ts) | 34e41f4b71Sopenharmony_ci 35e41f4b71Sopenharmony_ci**Adaptation Guide** 36e41f4b71Sopenharmony_ci 37e41f4b71Sopenharmony_ciIf you use the **webSocket.connect** API for connection setup when developing an atomic service, you need to go to [AppGallery Connect](https://developer.huawei.com/consumer/en-us/service/josp/agc/index.html) 38e41f4b71Sopenharmony_cito configure the server domain name. For details, see [Development Guide](https://developer.huawei.com/consumer/en-us/doc/atomic-guides-V5/agc-help-harmonyos-server-domain-V5). 39e41f4b71Sopenharmony_ci 40e41f4b71Sopenharmony_ciIf the **webSocket.connect** API fails during atomic service development, use **catch** to capture the error. If the error code is **2302998**, configure the server domain name in [AppGallery Connect](https://developer.huawei.com/consumer/en-us/service/josp/agc/index.html). For details, see [Development Guide](https://developer.huawei.com/consumer/en-us/doc/atomic-guides-V5/agc-help-harmonyos-server-domain-V5). 41