From fd29bbc1737255371a0a4c505903678cd720ad11 Mon Sep 17 00:00:00 2001 From: 177******89 <1225095037@qq.com> Date: Fri, 5 Sep 2025 07:08:02 +0000 Subject: [PATCH 1/3] update api/@ohos.net.webSocket.d.ts. Signed-off-by: 177******89 <1225095037@qq.com> --- api/@ohos.net.webSocket.d.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/api/@ohos.net.webSocket.d.ts b/api/@ohos.net.webSocket.d.ts index f8856d93d5..6b7981dae7 100644 --- a/api/@ohos.net.webSocket.d.ts +++ b/api/@ohos.net.webSocket.d.ts @@ -176,23 +176,21 @@ declare namespace webSocket { * Self defined interval of ping frame. * default: 30. disable: 0. max: 30000. unit:second. * Ping is performed at every pingInterval. - * @type {?int} + * @type {?number} * @syscap SystemCapability.Communication.NetStack * @since 21 - * @arkts 1.2 */ - pingInterval?: int; + pingInterval?: number; /** * Self defined timeout of pong frame. * default: 30. max: 30000. unit:second. The value must be less than or equal to pingInterval. * If no pong is received with the pongTimeout period, the websocket connection will be disconnected. - * @type {?int} + * @type {?number} * @syscap SystemCapability.Communication.NetStack * @since 21 - * @arkts 1.2 */ - pongTimeout?: int; + pongTimeout?: number; } /** -- Gitee From c2fe15ec1fe4b48dcdb7748825e39d4dbe695ab0 Mon Sep 17 00:00:00 2001 From: 177******89 <1225095037@qq.com> Date: Fri, 5 Sep 2025 08:06:43 +0000 Subject: [PATCH 2/3] update api/@ohos.net.webSocket.d.ts. Signed-off-by: 177******89 <1225095037@qq.com> --- api/@ohos.net.webSocket.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/@ohos.net.webSocket.d.ts b/api/@ohos.net.webSocket.d.ts index 6b7981dae7..70c2102f2f 100644 --- a/api/@ohos.net.webSocket.d.ts +++ b/api/@ohos.net.webSocket.d.ts @@ -176,11 +176,11 @@ declare namespace webSocket { * Self defined interval of ping frame. * default: 30. disable: 0. max: 30000. unit:second. * Ping is performed at every pingInterval. - * @type {?number} + * @type {?int} * @syscap SystemCapability.Communication.NetStack * @since 21 */ - pingInterval?: number; + pingInterval?: int; /** * Self defined timeout of pong frame. @@ -190,7 +190,7 @@ declare namespace webSocket { * @syscap SystemCapability.Communication.NetStack * @since 21 */ - pongTimeout?: number; + pongTimeout?: int; } /** -- Gitee From 1ba2ceb92ab82d95976ee7580f0255017ab24863 Mon Sep 17 00:00:00 2001 From: 177******89 <1225095037@qq.com> Date: Fri, 5 Sep 2025 08:07:48 +0000 Subject: [PATCH 3/3] update api/@ohos.net.webSocket.d.ts. Signed-off-by: 177******89 <1225095037@qq.com> --- api/@ohos.net.webSocket.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.net.webSocket.d.ts b/api/@ohos.net.webSocket.d.ts index 70c2102f2f..d966dc4489 100644 --- a/api/@ohos.net.webSocket.d.ts +++ b/api/@ohos.net.webSocket.d.ts @@ -186,7 +186,7 @@ declare namespace webSocket { * Self defined timeout of pong frame. * default: 30. max: 30000. unit:second. The value must be less than or equal to pingInterval. * If no pong is received with the pongTimeout period, the websocket connection will be disconnected. - * @type {?number} + * @type {?int} * @syscap SystemCapability.Communication.NetStack * @since 21 */ -- Gitee