# SocketTask
Start from base library version 1.7.0. Please remaining backward compatible.
WebSocket Task, available through wx.connectSocket() Interface creation return
# method
# SocketTask.send(Object object)
adopt WebSocket Connect to send data
# SocketTask.close(Object object)
Stop WebSocket Connect
# SocketTask.onOpen(function callback)
to monitor WebSocket Connection Open Event
# SocketTask.onClose(function callback)
to monitor WebSocket Connection Closure Event
# SocketTask.onError(function callback)
to monitor WebSocket Error event
# SocketTask.onMessage(function callback)
to monitor WebSocket Message event received from server