# SocketTask.onOpen(function callback)
Listens on the event of enabling the WebSocket connection.
# Parameters
# function callback
The callback function for the event of enabling the WebSocket connection.
# Parameters
# Object res
| Property | Type | Description | Minimum Version |
|---|---|---|---|
| header | object | Connected HTTP response header | 2.0.0 |