The callback will be passed one parameters: socket, the object which received the signal
Callback function