From e62028bda76aa97e054de88e8dc2da413bc2e866 Mon Sep 17 00:00:00 2001 From: king_he <6384784@qq.com> Date: Sat, 21 May 2022 09:43:27 +0000 Subject: [PATCH] update en/application-dev/connectivity/websocket-connection.md. Signed-off-by: king_he <6384784@qq.com> --- .../connectivity/websocket-connection.md | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/en/application-dev/connectivity/websocket-connection.md b/en/application-dev/connectivity/websocket-connection.md index 42501508c4..01f5f38fad 100644 --- a/en/application-dev/connectivity/websocket-connection.md +++ b/en/application-dev/connectivity/websocket-connection.md @@ -12,20 +12,20 @@ If an error occurs in any of the preceding processes, the client will receive a The WebSocket connection function is mainly implemented by the WebSocket module. To use related APIs, you must declare the **ohos.permission.INTERNET** permission. The following table describes the related APIs. -| API| Description| +| API | Description | | -------- | -------- | -| createWebSocket() | Creates a WebSocket connection.| -| connect() | Establishes a WebSocket connection to a given URL.| -| send() | Sends data through the WebSocket connection.| -| close() | Closes a WebSocket connection.| -| on(type: 'open') | Enables listening for **open** events of a WebSocket connection.| -| off(type: 'open') | Disables listening for **open** events of a WebSocket connection.| -| on(type: 'message') | Enables listening for **message** events of a WebSocket connection.| -| off(type: 'message') | Disables listening for **message** events of a WebSocket connection.| -| on(type: 'close') | Enables listening for **close** events of a WebSocket connection.| -| off(type: 'close') | Disables listening for **close** events of a WebSocket connection.| -| on(type: 'error') | Enables listening for **error** events of a WebSocket connection.| -| off(type: 'error') | Disables listening for **error** events of a WebSocket connection.| +| createWebSocket() | Creates a WebSocket connection. | +| connect() | Establishes a WebSocket connection to a given URL. | +| send() | Sends data through the WebSocket connection. | +| close() | Closes a WebSocket connection. | +| on(type: 'open') | Enables listening for **open** events of a WebSocket connection. | +| off(type: 'open') | Disables listening for **open** events of a WebSocket connection. | +| on(type: 'message') | Enables listening for **message** events of a WebSocket connection. | +| off(type: 'message') | Disables listening for **message** events of a WebSocket connection. | +| on(type: 'close') | Enables listening for **close** events of a WebSocket connection. | +| off(type: 'close') | Disables listening for **close** events of a WebSocket connection. | +| on(type: 'error') | Enables listening for **error** events of a WebSocket connection. | +| off(type: 'error') | Disables listening for **error** events of a WebSocket connection. | ## How to Develop -- GitLab