# SocketTask.onClose(function callback)

Listens on the event of disabling the WebSocket connection.

# Parameters

# function callback

The callback function for the event of disabling the WebSocket connection.