Start from base library version 1.7.0. Please remaining backward compatible.
The WebSocket task can be created and returned via the wx.connectSocket() API.
Sends data over a WebSocket connection
Disables the WebSocket connection
Listens on the event of enabling the WebSocket connection.
Listens on the event of disabling the WebSocket connection.
Listens on the WebSocket error event.
Listens on the event of receiving server messages by WebSocket