Lines Matching refs:WebSocket

1 # # @ohos.net.webSocket (WebSocket Connection)
8WebSocket to establish a bidirectional connection between a server and a client. Before doing this…
91 createWebSocket(): WebSocket
93 Creates a WebSocket connection. You can use this API to create or close a WebSocket connection, sen…
103 | [WebSocket](#websocket6) | A **WebSocket** object, which contains the **connect**, **send**, **cl…
108 let ws: webSocket.WebSocket = webSocket.createWebSocket();
111 ## WebSocket<sup>6+</sup>
113 …**WebSocket** object. Before invoking WebSocket APIs, you need to call [webSocket.createWebSocket]…
119 Initiates a WebSocket request to establish a WebSocket connection to a given URL. This API uses an …
136 | url | string | Yes | URL for establishing a WebSocket connection.|
175 Initiates a WebSocket request carrying specified options to establish a WebSocket connection to a g…
192 | url | string | Yes | URL for establishing a WebSocket connection. …
241 Initiates a WebSocket request carrying specified options to establish a WebSocket connection to a g…
258 | url | string | Yes | URL for establishing a WebSocket connection. …
301 Sends data through a WebSocket connection. This API uses an asynchronous callback to return the res…
362 Sends data through a WebSocket connection. This API uses a promise to return the result.
428 Closes a WebSocket connection. This API uses an asynchronous callback to return the result.
469 Closes a WebSocket connection carrying specified options such as **code** and **reason**. This API …
517 Closes a WebSocket connection carrying specified options such as **code** and **reason**. This API …
567 Enables listening for the **open** events of a WebSocket connection. This API uses an asynchronous …
577 … | Yes | Event type. <br />**open**: event indicating that a WebSocket connection has b…
600 Disables listening for the **open** events of a WebSocket connection. This API uses an asynchronous…
613 … | Yes | Event type. <br />**open**: event indicating that a WebSocket connection has b…
639 Enables listening for the **message** events of a WebSocket connection. This API uses an asynchrono…
671 Disables listening for the **message** events of a WebSocket connection. This API uses an asynchron…
701 Enables listening for the **close** events of a WebSocket connection. This API uses an asynchronous…
711 … | Yes | Event type. <br />**close**: event indicating that a WebSocket connection has b…
730 Disables listening for the **close** events of a WebSocket connection. This API uses an asynchronou…
743 … | Yes | Event type. <br />**close**: event indicating that a WebSocket connection has b…
759 Enables listening for the **error** events of a WebSocket connection. This API uses an asynchronous…
769 | type | string | Yes | Event type.<br />**error**: event indicating the WebSocket conn…
788 Disables listening for the **error** events of a WebSocket connection. This API uses an asynchronou…
801 | type | string | Yes | Event type.<br />**error**: event indicating the WebSocket conn…
817 Enables listening for the **dataEnd** events of a WebSocket connection. This API uses an asynchrono…
825 …nt type.<br />**dataEnd**: event indicating the data receiving over the WebSocket connection has e…
843 Disables listening for the **dataEnd** events of a WebSocket connection. This API uses an asynchron…
854 …nt type.<br />**dataEnd**: event indicating the data receiving over the WebSocket connection has e…
921 Defines the optional parameters carried in the request for establishing a WebSocket connection.
927 …| Header carrying optional parameters in the request for establishing a WebSocket connection. You …
931 | protocol<sup>12+</sup> | string | No | Yes| Custom **Sec-WebSocket-Protocol** field. The default…
960 Defines the optional parameters carried in the request for closing a WebSocket connection.
973 Represents the result obtained from the **close** event reported when the WebSocket connection is c…
995 ## Result Codes for Closing a WebSocket Connection