From cd4e3712ca15219c13b199e7edf47996ec1d5910 Mon Sep 17 00:00:00 2001 From: Yangys Date: Wed, 15 Mar 2023 05:03:25 +0000 Subject: [PATCH] update en/application-dev/reference/apis/js-apis-webSocket.md. Signed-off-by: Yangys --- en/application-dev/reference/apis/js-apis-webSocket.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-webSocket.md b/en/application-dev/reference/apis/js-apis-webSocket.md index ea7067a385..ae1f200331 100644 --- a/en/application-dev/reference/apis/js-apis-webSocket.md +++ b/en/application-dev/reference/apis/js-apis-webSocket.md @@ -406,7 +406,7 @@ off\(type: 'open', callback?: AsyncCallback\): void Disables listening for the **open** events of a WebSocket connection. This API uses an asynchronous callback to return the result. ->**NOTE:** +>![](public_sys-resources/icon-note.gif) **NOTE:** >You can pass the callback of the **on** function if you want to cancel listening for a certain type of event. If you do not pass the callback, you will cancel listening for all events. **System capability**: SystemCapability.Communication.NetStack @@ -437,7 +437,7 @@ on\(type: 'message', callback: AsyncCallback\): void Enables listening for the **message** events of a WebSocket connection. This API uses an asynchronous callback to return the result. The maximum length of each message is 4 KB. If the length exceeds 4 KB, the message is automatically fragmented. ->**NOTE:** +>![](public_sys-resources/icon-note.gif) **NOTE:** >The data in **AsyncCallback** can be in the format of string\(API 6\) or ArrayBuffer\(API 8\). **System capability**: SystemCapability.Communication.NetStack @@ -466,7 +466,7 @@ off\(type: 'message', callback?: AsyncCallback\): void Disables listening for the **message** events of a WebSocket connection. This API uses an asynchronous callback to return the result. The maximum length of each message is 4 KB. If the length exceeds 4 KB, the message is automatically fragmented. ->**NOTE:** +>![](public_sys-resources/icon-note.gif) **NOTE:** >The data in **AsyncCallback** can be in the format of string\(API 6\) or ArrayBuffer\(API 8\). >You can pass the callback of the **on** function if you want to cancel listening for a certain type of event. If you do not pass the callback, you will cancel listening for all events. @@ -518,7 +518,7 @@ off\(type: 'close', callback?: AsyncCallback<\{ code: number, reason: string \}\ Disables listening for the **close** events of a WebSocket connection. This API uses an asynchronous callback to return the result. ->**NOTE:** +>![](public_sys-resources/icon-note.gif) **NOTE:** >You can pass the callback of the **on** function if you want to cancel listening for a certain type of event. If you do not pass the callback, you will cancel listening for all events. **System capability**: SystemCapability.Communication.NetStack @@ -571,7 +571,7 @@ off\(type: 'error', callback?: ErrorCallback\): void Disables listening for the **error** events of a WebSocket connection. This API uses an asynchronous callback to return the result. ->**NOTE:** +>![](public_sys-resources/icon-note.gif) **NOTE:** >You can pass the callback of the **on** function if you want to cancel listening for a certain type of event. If you do not pass the callback, you will cancel listening for all events. **System capability**: SystemCapability.Communication.NetStack -- GitLab