Implements the $NOTIFY_SOCKET protocol in a more concise way