Added monitor method to socket.