# SocketTask.send(Object object)

with Promise style call: Not supported

Mini Program plugin: Support

adopt WebSocket Connect to send data

# parameter

# Object object

attribute type Default values Required Introductions
data string/ArrayBuffer yes What to send
success function no Interface calls the successful callback function
fail function no Interface calls failed callback functions
complete function no Callback function at the end of an interface call (both successful and unsuccessful calls are executed)